country_pickers
3.0.1, released 3 years ago by an unverified publisher
Provides country picker widgets with flags, ISO codes and phone prefixes.
What it does
The package supplies ready‑made Flutter widgets to select a country via dropdown, dialog or Cupertino picker. It includes flag images and country metadata such as ISO code and phone code.
AI-written summary of version 3.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a quick UI for selecting a country or phone code
- You want built‑in flag assets without handling them yourself
Skip it when
- You require extensive customization beyond the provided widgets
- You need a full localization solution or non‑country data
Strengths
- Simple API with multiple picker styles
- Flag assets bundled with the package
- Null‑safe and works on all Flutter platforms
Weaknesses
- Limited to country data only
- No built‑in support for custom flag sets
- May lack recent country updates
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
CountryPickerDropdown(
initialValue: 'AR',
itemBuilder: (c) => Row(children: [
CountryPickerUtils.getDefaultFlagImage(c),
SizedBox(width: 8),
Text('+${c.phoneCode}(${c.isoCode})'),
]),
onValuePicked: (c) => print(c.name),
);Alternatives
Packages that do the same job and could replace country_pickers.
- country_currency_pickers
Country and currency picker widgets for Flutter
50Compare - country_flags
Displays country flags as SVG or emoji using ISO country, language, currency, or phone prefix codes
69Compare - circle_flags
Provides a CircleFlag widget to display circular country flag SVGs.
76Compare - re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare
Works with
Packages commonly used together with country_pickers: ones it builds on, ones built on it, and its own family.