Skip to content
pubscout

flutter_country_selector

3.0.0, released 7 weeks ago by an unverified publisher

A country picker widget to select a country, now re-exported from phone_form_field.

WASM-ready
$ flutter pub add flutter_country_selector
Source repository

What it does

Provides a full-screen page or modal sheet for users to select a country, featuring extensive language localizations and accessibility support. Since version 3.0.0, the package acts as a thin re-export of the phone_form_field package.

AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a dedicated country selection interface in your app forms.
  • You want support for multiple localized country names and flags.

Skip it when

  • You are starting a new project and can just use phone_form_field directly.
  • You do not need a country picker widget.

Strengths

  • Lots of supported languages for localization.
  • Semantics and accessibility built in.

Weaknesses

  • Merged into phone_form_field, so this package is now merely a thin wrapper/re-export.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Requires setting up localizations delegates as described in the documentation.

Navigator.of(context).push(
  MaterialPageRoute(
    builder: (ctx) => CountrySelector.page(
      onCountrySelected: (country) => Navigator.of(context).pop(country),
    ),
  ),
);

Alternatives

Packages that do the same job and could replace flutter_country_selector.

Works with

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