Skip to content
pubscout

country_pickers

3.0.1, released 3 years ago by an unverified publisher

Provides country picker widgets with flags, ISO codes and phone prefixes.

WASM-ready
$ flutter pub add country_pickers
Source repository

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.

Works with

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