PackageTrack
Sign in Get early access

country_codes_plus

Country code plus is a helper package that provides country details given a particular localization, such as dial codes, ISO 3166 codes (alpha-2, alpha-3) and country names.

5.1.2 4.8K downloads/mo #3904 most downloaded on pub.dev seidlmatus/country_code_plus

What this package is like to depend on

Last release 1 months ago

04 Jul 2026

Ships fairly regularly

a new release about every 2 months

Most releases are documented

notes for 7 of 8 stable releases

Nothing withdrawn

no release was ever pulled

5 months old

8 releases · first in 2026

8 releases in the last 12 months

see the full history below

Release timeline

8 releases · Mar 2026 to Jul 2026
Release Pre-release

Releases

latest 8
  1. 5.1.2 04 Jul 2026
    Release notes
    • Update Android tooling to Kotlin 2.3.20 and migrate the plugin Gradle build to the current Kotlin DSL.
    • Update the example app to Android Gradle Plugin 9.0.1 and Gradle 9.1.0.
    • Refresh locked Flutter test dependencies.
    • Remove the obsolete R8 flag, disable the unused Jetifier compatibility layer, and ignore generated iOS Swift Package Manager files.
    • Replace placeholder CocoaPods metadata with package details and modernize the iOS simulator architecture setting.
    • Refresh the iOS and macOS example projects for current Flutter/Xcode, including Swift Package Manager integration, UIScene lifecycle support, and supported deployment targets.
    Open source →
  2. 5.1.1 31 May 2026
    Release notes
    • Export CountrySubdivision from the legacy country_codes.dart entrypoint for compatibility with explicit subdivision type annotations.
    • Add country lookup/search helpers: allCountries, searchCountries(), detailsFromAlpha3(), countriesFromDialCode(), and countryFromDialCode().
    • Improve global subdivision search performance by reusing cached subdivision objects instead of rebuilding the full dataset for each search.
    • Add value equality, hashCode, and toString() implementations for public model classes.
    • Tighten country data typing and remove analyzer lint findings.
    • Add tests for legacy subdivision exports, additional country lookup helpers, model value behavior, sub-region locale fallback, and empty-region platform locale fallback.
    • Refresh lockfile metadata for current Flutter/Dart tooling.
    • Fix Swift Package Manager manifests for Flutter's FlutterFramework dependency and make iOS CI checkout path match the package identity.
    • Add release process documentation.
    Open source →
  3. 5.1.0 03 Mar 2026
    Release notes
    • Add rich locale lookup API: CountryCodes.lookupDetails() with explicit success/error status.
    • Add subdivision search helpers: searchSubdivisions(query, ...) and subdivisionTypesForCountry(alpha2).
    • Extend DialCodeFormatter with configurable separator and optional preservation of user-entered international prefixes.
    • Expand unit tests for new lookup, subdivision, and formatter behaviors.
    • Extend example app and docs to demonstrate all new APIs and formatter variants.
    Open source →
  4. 5.0.5 03 Mar 2026
    Release notes
    • Harden CountryCodes.init() against null/short/invalid platform payloads and avoid RangeError.
    • Add CountryCodes.detailsForLocaleOrNull() for null-safe locale resolution while keeping detailsForLocale() behavior explicit.
    • Make detailsFromAlpha2() case-insensitive and return clearer ArgumentError for unknown codes.
    • Prevent DialCodeFormatter crashes when dial code cannot be resolved.
    • Add tests for the new edge cases and null-safe flows.
    • Improve docs and examples for safe initialization/error handling.
    • Add visible Buy Me a Coffee support links to README and example docs.
    Open source →
  5. 5.0.4 01 Mar 2026
    Release notes
    • Add Kosovo (XK) to the country list returned by CountryCodes.countryCodes().
    • Include Kosovo metadata: alpha-3 XKX, dial code +383, and locale mapping sq_XK.
    • Add subdivisions API with ISO 3166-2 lookup methods.
    • Add subdivision datasets for all supported countries, with manual fallback entries for Kosovo (XK).
    Open source →
  6. 5.0.3 01 Mar 2026
    Release notes
    • Add Swift Package Manager manifests for iOS and macOS plugin targets.
    • Add Swift sources for SPM targets using the same platform channel behavior as existing plugin code.
    Open source →
  7. 5.0.2 01 Mar 2026
    Release notes
    • Improve package documentation for pub.dev (README badges and install instructions).
    • Replace default example README with package-specific usage notes.
    • Keep repository metadata aligned for pub.dev score validation.
    Open source →
  8. 5.0.1 01 Mar 2026

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive