country_state_city_picker
2.0.0, released 7 months ago by an unverified publisher
Flutter package to select countries, states, and cities using pickers.
What it does
Provides a widget to display cascading dropdowns or selections for countries, states, and cities. It supports search, flags, initial values, and callbacks returning both strings and full data models.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to let users select their country, state, and city in a form.
- You require Material, Cupertino, or adaptive UI pickers for location selection.
Skip it when
- You need device location tracking or GPS mapping features.
- You require custom backend geographic databases outside of the package's bundled dataset.
Strengths
- Built-in support for Material, Cupertino, and adaptive picker types.
- Searchable lists and country flag support.
- Provides both string-based callbacks and full model-based callbacks.
Weaknesses
- Relies entirely on the package's bundled database for geographic data.
- Limited to country, state, and city selection UI components.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
SelectState(
onCountryChanged: (value) => setState(() => countryValue = value),
onStateChanged: (value) => setState(() => stateValue = value),
onCityChanged: (value) => setState(() => cityValue = value),
)Alternatives
Packages that do the same job and could replace country_state_city_picker.
- country_code_picker
A Flutter widget for showing a country code selector with search and favorites support.
69Compare - country_state_city
Display a list of world-wide countries, states, and cities depending on given country.
48Compare - textfield_search
TextField widget to search and select values from a static list or future.
75Compare - country_state_city_pro
A Flutter package to get and select world's countries, states, and cities.
37Compare
Works with
Packages commonly used together with country_state_city_picker: ones it builds on, ones built on it, and its own family.