country-list-pick
country-list-pick copied to clipboard
How to set empty value?
I tried to leave blank, but automatically, Afghanistan is selected. I looked at the docs, and the source code, I think there is no way, right?
I found this at the source code: https://github.com/hifiaz/country-list-pick/blob/69b5a2e725db5ce2d63cf5ee41536b9d44509a0e/lib/country_list_pick.dart#L66
So, when the empty value is passed, automatically Afghanistan will be chosen. Why?
I have the same issue, it's not correct that it's selected by default. Selection type is CountryCode, or it could be done by adding Select country with -- code to the code_countries_en.dart or by changing the logic, that's preferable. But in both it's necessary to change the plugin.