Skip to content
pubscout

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.

WASM-ready
$ flutter pub add country_code_picker
Source repository

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.

Works with

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