flutter_country_phone 0.1.2 copy "flutter_country_phone: ^0.1.2" to clipboard
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 CountryBloc provisioning for CountryFormField, CountryField, PhoneFormField, PhoneField, and CountryWidget.
  • Added CountryPhoneScope as 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 CountryEntity and CountryModel following the workspace Clean Architecture conventions.
  • Added CountryStaticDataSource, CountryRepository, and GetCountriesUseCase.
  • Added CountryBloc for loading, caching, refreshing, and replacing the country catalog in app state.
  • Added CountryFormField, CountryField, PhoneFormField, and PhoneField.
  • Added CountryFlag, CountryWidget, and ItemCountry helper widgets.
  • Added CountryPhoneFieldStyle plus 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, and pt-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.
2
likes
140
points
229
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Country catalog, localized country picker, SVG flags, and international phone form fields for Flutter apps.

Homepage

Topics

#country-picker #phone-field #flags #form #localization

License

MIT (license)

Dependencies

collection, equatable, flutter, flutter_bloc, flutter_svg, phone_numbers_parser

More

Packages that depend on flutter_country_phone