Open Prasiddha777 opened 5 months ago
I'm also facing the same issue... after selecting country there is no dropdown for state and city!!
any solution??
The value of stateValue and cityValue are nullables and hence we need to use null-aware operator and assign a default value. Replace value with value ?? "". Example: onStateChanged: (value) { setState(() { stateValue = value ?? ""; }); },
Describe the bug I followed your documentation and try to use it but i am unable to click on states and cities after i select on country. I followed the same example shown on pub my code looks like
/// Variables to store country state city data in onChanged method. String countryValue = ""; String stateValue = ""; String cityValue = ""; String address = ""; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(), body: Center( child: Container( padding: EdgeInsets.symmetric(horizontal: 20), height: 600, child: Column( children: [ CSCPicker( showStates: true, showCities: false, flagState: CountryFlag.DISABLE, dropdownDecoration: BoxDecoration( borderRadius: const BorderRadius.all( Radius.circular(20), ), color: Colors.white, border: Border.all(color: Colors.grey.shade300, width: 1)), disabledDropdownDecoration: BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(10)), color: Colors.grey.shade300, border: Border.all(color: Colors.grey.shade300, width: 1)),
To Reproduce Steps to reproduce the behavior:
Expected behavior I must be able to select the cities and states as well after i select on the country
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.