flutter_country_selector
3.0.0, released 7 weeks ago by an unverified publisher
A country picker widget to select a country, now re-exported from phone_form_field.
What it does
Provides a full-screen page or modal sheet for users to select a country, featuring extensive language localizations and accessibility support. Since version 3.0.0, the package acts as a thin re-export of the phone_form_field package.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a dedicated country selection interface in your app forms.
- You want support for multiple localized country names and flags.
Skip it when
- You are starting a new project and can just use phone_form_field directly.
- You do not need a country picker widget.
Strengths
- Lots of supported languages for localization.
- Semantics and accessibility built in.
Weaknesses
- Merged into phone_form_field, so this package is now merely a thin wrapper/re-export.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires setting up localizations delegates as described in the documentation.
Navigator.of(context).push(
MaterialPageRoute(
builder: (ctx) => CountrySelector.page(
onCountrySelected: (country) => Navigator.of(context).pop(country),
),
),
);Alternatives
Packages that do the same job and could replace flutter_country_selector.
- world_countries
Compile-time sealed world data with country, currency, language, and phone pickers.
80Compare - flutter_intl_phone_field
International phone number input with country picker, formatting, and validation for 250+ countries.
76Compare - form_builder_phone_field
International phone number input field for the flutter_form_builder package.
70Compare - date_field
A form field widget for picking dates and times with adaptive Material and Cupertino dialogs
75Compare
Works with
Packages commonly used together with flutter_country_selector: ones it builds on, ones built on it, and its own family.