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 111 forks source link

Pre set the default value for country and state drodown #37

Open bipindubey-technoark opened 2 years ago

bipindubey-technoark commented 2 years ago

I want to set the default value for country and state droddown, I seen that this functionality is available in version 2.0.6 but on pub dev latest version is 2.0.5.

How to get the latest version @altafc22 @Lab360-inc Thanks

altafc22 commented 2 years ago

Please check beta branch you will gate 2.0.6 code

bipindubey-technoark commented 2 years ago

@altafc22 how to use beta branch code in my project

can you merge beta branch in master ?? and also upload that in pub.dev

altafc22 commented 2 years ago

@bipindubey-technoark please install csc picker v0.2.6 from pub.dev beta code is available in pub.dev

bipindubey-technoark commented 2 years ago

it is available now Thanks @altafc22

bipindubey-technoark commented 2 years ago

@altafc22 I am facing one small issue in this

i have set currentcountry and currentState and working fine

lets suppose India has 2 state, Maharashtra and Gujrat.

Initially country is set to India and state is set to Maharashtra. I dont know state city is getting disable first time Now i have to change only state to Gujrat but i am unable to do so for changing state i have to change country also. then i am able to select state

Validation for state should be

  1. country should not be blank

but we have country so it should allow me to select state based on that country We have one field as disableCountry . We should have one more field as disableState which will be boolean.

Thanks @altafc22

bipindubey-technoark commented 2 years ago

hii @altafc22 Any updates?