country-list-pick icon indicating copy to clipboard operation
country-list-pick copied to clipboard

How to set empty value?

Open netojose opened this issue 3 years ago • 1 comments

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?

netojose avatar Mar 23 '21 03:03 netojose

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.

VladPhi avatar Aug 02 '22 12:08 VladPhi