Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showState = false doesn't work properly #39

Open
AKhashi opened this issue Sep 21, 2021 · 3 comments
Open

showState = false doesn't work properly #39

AKhashi opened this issue Sep 21, 2021 · 3 comments

Comments

@AKhashi
Copy link

AKhashi commented Sep 21, 2021

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:

  • if to set layout: Layout.vertical then State dropdown list is shown regardless to the value of showState
  • if layout is not set and showState: false then Countries doprdown list is shown only (even if showCities is true);

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
Copy link

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

@bipindubey-technoark
Copy link

bipindubey-technoark commented Sep 23, 2021

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 #37 (comment)

@mrsrmn
Copy link

mrsrmn commented Jun 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants