flutter_country_phone 0.1.2
flutter_country_phone: ^0.1.2 copied to clipboard
Country catalog, localized country picker, SVG flags, and international phone form fields for Flutter apps.
Changelog #
0.1.2 #
- Added automatic
CountryBlocprovisioning forCountryFormField,CountryField,PhoneFormField,PhoneField, andCountryWidget. - Added
CountryPhoneScopeas an optional reusable scope for sharing one country catalog instance across several package widgets. - Kept compatibility with apps that already provide
CountryBloc; existing ancestor blocs are reused instead of replaced. - Updated documentation so the package can be used as drop-in form widgets without app-level provider setup.
0.1.1 #
- Fixed adaptive overlay positioning when the country/phone picker needs to open above the field because there is not enough room below, including keyboard constrained layouts.
- Ensured the overlay stays attached to the field when rendered above, using the real overlay height instead of an estimated maximum height offset.
0.1.0 #
Initial public-ready release.
- Added a static country catalog with ISO codes, phone prefixes, localized names, and package-owned SVG flags.
- Added
CountryEntityandCountryModelfollowing the workspace Clean Architecture conventions. - Added
CountryStaticDataSource,CountryRepository, andGetCountriesUseCase. - Added
CountryBlocfor loading, caching, refreshing, and replacing the country catalog in app state. - Added
CountryFormField,CountryField,PhoneFormField, andPhoneField. - Added
CountryFlag,CountryWidget, andItemCountryhelper widgets. - Added
CountryPhoneFieldStyleplus country item and selected-country button builders for UI customization. - Added locale fallback helpers for language codes and locale strings such as
es,es_MX,es-MX,pt_BR, andpt-BR. - Improved country search so it matches localized names, ISO codes, and phone prefixes.
- Added customizable phone autofill hints and locale overrides for country and phone fields.
- Added tests for catalog loading, locale fallback, country matching, and model parsing.