Skip to content
pubscout

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.

WASM-ready
$ flutter pub add country_state_city_picker
Source repository

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.

Works with

Packages commonly used together with country_state_city_picker: ones it builds on, ones built on it, and its own family.