country_meta 1.0.0
country_meta: ^1.0.0 copied to clipboard
A Dart-only package that provides structured metadata for all countries, including ISO codes, phone codes, currencies, localized names, and flag image URLs.
Changelog #
All notable changes to this project will be documented in this file.
1.0.0 - #
- Stable API release.
- Added emoji flags (strict ISO only).
- Added direct flag access without CountryRepository:
FlagEmojiBuilder.build('US')β πΊπΈFlagUrlBuilder.svg('US'),.webp('US', width: ...),.jpeg('US', height: ...)
- Updated
README.mdwith examples and direct-access section. - Updated
example/main.dartto demonstrate emoji + direct URL use.
0.0.1 Initial Release #
Added #
- Full
CountryMetamodel with ISO Alpha-2, Alpha-3, Numeric, currency, phone, and locales. - Localized country names for English, Russian, and Arabic.
- Static utility
CountryNameLocalizerand extension onCountryMeta. - Country lookup repository with index access by iso/locale.
- Flag URL generation with support for SVG, JPEG, WebP via Flagpedia CDN.
FlagImageFormat,FlagWidth, andFlagHeightenums.- Extensions on
CountryMetafor flag and name access. - Unit tests for all major components.
- Example usage in
example/main.dart. README.md,LICENSE, andpubspec.yamlmetadata.