Skip to content
pubscout

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.

WASM-ready
$ flutter pub add fl_country_code_picker
Source repository

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.

Works with

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