Skip to content
pubscout

country_meta

1.0.0, released a year ago by an unverified publisher

Provides structured metadata for countries, including ISO codes, phone codes, currencies, and flags.

WASM-ready
$ flutter pub add country_meta
Source repository

What it does

Provides a Dart-only country metadata repository that includes ISO codes, currencies, phone codes, localized names (English, Russian, Arabic), and utilities for rendering flags via emoji or image URLs.

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

Use it when

  • You need country codes, phone prefixes, or currency metadata in a Dart or Flutter app.
  • You want to display country flag icons via SVGs, WebPs, JPEGs, or emojis.

Skip it when

  • You need localizations for a vast number of languages beyond English, Russian, and Arabic.
  • You need a comprehensive timezone database for every country.

Strengths

  • Dart-only package supporting all platforms.
  • Built-in flag URL and emoji generation utilities.
  • Lightweight with zero external dependencies.

Weaknesses

  • Limited to English, Russian, and Arabic localized names out of the box.
  • Flag images rely on external CDN access.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

none

final country = CountryRepository.byAlpha2('US');
print(country?.currency); // USD
print(country?.phoneCode); // 1

Alternatives

Packages that do the same job and could replace country_meta.

  • intl

    If you need comprehensive internationalization, formatting, and locale data built into Dart.