country_code_picker
3.4.1, released a year ago by solusibejo.com
A Flutter widget for showing a country code selector with search and favorites support.
What it does
Provides a customizable widget that displays country flags, names, and dial codes. It includes an interactive selection dialog equipped with a search box, sorting options, and favorite country pinning.
AI-written summary of version 3.4.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a phone number prefix or country selector in a registration or settings form.
- You require multi-language support for country names across dozens of locales.
Skip it when
- You need a general-purpose country dropdown with complex non-phone metadata not covered by the package.
Strengths
- Built-in localization support for 70 languages.
- Extensive customization options for styling, flags, filtering, and search behavior.
Weaknesses
- Relies on external localization delegates setup in MaterialApp.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Requires adding CountryLocalizations.delegate to your app's supported localizations delegates.
CountryCodePicker(
onChanged: print,
initialSelection: 'IT',
favorite: ['+39', 'FR'],
showCountryOnly: false,
showOnlyCountryWhenClosed: false,
alignLeft: false,
)Alternatives
Packages that do the same job and could replace country_code_picker.
- country_state_city_picker
Flutter package to select countries, states, and cities using pickers.
58Compare - textfield_search
TextField widget to search and select values from a static list or future.
76Compare - sms_autofill
Flutter plugin to provide SMS code autofill support.
80Compare - fl_country_code_picker
A Flutter package to show a modal picker containing country dial codes with search and localization.
49Compare
Works with
Packages commonly used together with country_code_picker: ones it builds on, ones built on it, and its own family.