fl_country_code_picker
0.1.9+1, released 3 years ago by an unverified publisher
A Flutter package to show a modal picker containing country dial codes with search and localization.
What it does
Provides a modal widget allowing users to search and select country dial codes, flags, and names. It supports localization, favorites customization, filters, and National Significant Numbers.
AI-written summary of version 0.1.9+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a phone number input flow with country codes and flags.
- You require localized country names and search functionality.
Skip it when
- You need complete form state management solutions rather than just a picker widget.
Strengths
- Includes search and automatic scrolling to device locale.
- Supports multiple localizations and national significant numbers.
- Easily customizable via parameters for styling and layout.
Weaknesses
- Limited to country code selection features only.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add the package's localizations delegates to your MaterialApp if using localization support.
final countryPicker = const FlCountryCodePicker();
final picked = await countryPicker.showPicker(context: context);
if (picked != null) print(picked);Alternatives
Packages that do the same job and could replace fl_country_code_picker.
- country_code_picker
A Flutter widget for showing a country code selector with search and favorites support.
69Compare - sms_autofill
Flutter plugin to provide SMS code autofill support.
80Compare - textfield_search
TextField widget to search and select values from a static list or future.
76Compare - country_state_city_picker
Flutter package to select countries, states, and cities using pickers.
58Compare
Works with
Packages commonly used together with fl_country_code_picker: ones it builds on, ones built on it, and its own family.