Skip to content
pubscout

iso_countries

2.2.0, released 4 years ago by an unverified publisher

Fetch ISO country data and localized names directly from the device OS.

WASM-ready
$ flutter pub add iso_countries
Source repository

What it does

Fetches a list of ISO countries and their details dynamically from the device operating system rather than hardcoding them. Allows retrieving country names in various languages by passing language codes and supports querying specific countries by code and locale.

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

Use it when

  • You need a list of countries for user input forms like address or profile creation.
  • Country names need to be displayed in the user's local language using OS-level translations.

Skip it when

  • You need a static list of countries that works identically across all devices without depending on OS capabilities.
  • You are targeting platforms other than Android and iOS.

Strengths

  • No hardcoded country lists or translations; leverages device OS data.
  • Supports fetching countries filtered or translated by specific language codes.

Weaknesses

  • Relies on the device OS, meaning country lists and translations may slightly vary across different OS versions or devices.
  • Android requires API level 21 or higher.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Android requires API level 21 or higher. iOS may require podfile cleanup if pod issues occur.

List<Country>? countries = await IsoCountries.isoCountries;

Alternatives

Packages that do the same job and could replace iso_countries.

  • l10n_languages

    Provides CLDR-like translations for language names across 157 locales.

  • l10n_currencies

    Provides CLDR-like currency name translations for 149 locales in pure Dart with zero dependencies.

  • locale_plus

    Access native device locale data like language, country code, time zone, and number formats.

  • language_code

    Get current device language code and locale with full ISO 639-1 and ISO 639-2 dictionaries.