altafc22 / csc_picker

A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.
BSD 3-Clause "New" or "Revised" License
27 stars 118 forks source link

showState = false doesn't work properly #39

Open AKhashi opened 3 years ago

AKhashi commented 3 years ago

Hi,

I need to be able to show only Countries and Cities lists but I found that showState = true/false flag does not work properly:

I took a look on your source code in csc_picker.dart and found that when CSC widget is being built there is no check of showState/showCities at all when layout is vertical, and when layout is not set it shows Cities list only if showState is true.

latestbob commented 3 years ago

Exactly,, am currently using it now,, I want to exclude the city,, but showCity false even disabled the state dropdown

bipindubey-technoark commented 3 years ago

Exactly,, am currently using it now,, I want to exclude the city,, but showCity false even disabled the state dropdown

Hii @latestbob state dropdown gets disabled because you have not selected country once country is selected then state dropdown should work.

and this is feature request ......we should have one more field as disabledState which will be boolean and then we can use it as per our requirement @altafc22

I am also facing one issue here https://github.com/altafc22/csc_picker/issues/37#issuecomment-923814425

mrsrmn commented 3 months ago

@altafc22 thank you for being a very responsive developer and not fixing this in 3 years