NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #1881 most downloaded on pub.dev
Country codes is an helper package that provides country details given a particular localization, such as dial codes, ISO 3166 codes (alpha-2, alpha-3) and country names.
Latest stable
3.3.0
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 8 days to 2.0 years
Most releases are documented
notes for 24 of 30 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
30 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Removed old pre-Flutter-1.12 Android project plugin method registerWith which has been removed from flutter 3.29.0
registerWith which has been removed from flutter 3.29.0Add onInvalidLocale callback to name method.
name method.Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Fix minor regression where init would fail if the device's locale was null.
init would fail if the device's locale was null.Nothing published for this version
Nothing published for this version
* Adds countryCode property.
countryCode property.Nothing published for this version
Nothing published for this version
Adds Android namespace and other minor improvements.
Upgrades to Android project (pre 1.12). Thank you @vergardan.
* Fixes Sint Marteen code (#20).
Adds a method to get a List with all country's details (#16). Thank you @wizlif.
List with all country's details (#16). Thank you @wizlif.* Updates gradle to 5.4.1.
Updates to null safety. Thank you @AntonyLeons.
Adds new codes from Netherlands Antilles dissolution (#5). Thanks @comESK.
* Fixes dial code for Shqipëria.
Sets default Locale to en-US whenever a device hasn't a default locale set (typically will happen only on iOS simulators).
Locale to en-US whenever a device hasn't a default locale set (typically will happen only on iOS simulators).Added localizedName property to CountryDetails. This allows you to display any country name base on a Locale language. Must be set when doing CountryC
localizedName property to CountryDetails. This allows you to display any country name base on a Locale language. Must be set when doing CountryCodes.init(locale), defaults to device's language.compileSdkVersion to 29 and minSdkVersion to 21;Updates assert to also validate that countryCode is not null.
countryCode is not null.Exposes device Locale (language and country code) instead of country only.
Exposes device Locale (language and country code) instead of country only.
Exposes device's Locale through getDeviceLocale() method.
Exposes device's Locale through getDeviceLocale() method.
Replaces FutureOr with Locale to make it explicitly synchronous when invoking getDeviceLocale()
Replaces FutureOr<Locale> with Locale to make it explicitly synchronous when invoking getDeviceLocale()
Updates dialCode() to receive the [locale] optionally instead of explictly null in order to retrieve the device's region dial code.
Updates dialCode() to receive the [locale] optionally instead of explictly null in order to retrieve the device's region dial code.
Updates README
Updates README
Adds default locale from device region when not provided. For this to work, please call CountryCodes.init() before invoking other methods.
locale from device region when not provided. For this to work, please call CountryCodes.init() before invoking other methods.Format
Format
Adds license (MIT)
Adds license (MIT)
Initial release. Provides access to DialCodeFormatter for TextFormFields, alpha2Code, dialCode and name.
Initial release. Provides access to DialCodeFormatter for TextFormFields, alpha2Code, dialCode and name.
One column per quarter.