country_code_picker library
Classes
- Country
- Immutable country model.
- CountryPickerLocalizations
- CountryPickerLocalizationsDelegate
- CountryPickerStyle
- Customization options for the bottom sheet.
Functions
-
normalizeCountries(
List< Country> input) → List<Country> - Normalize and sort a list of countries.
-
showCountryCodePickerBottomSheet(
{required BuildContext context, List< Country> countries = const [], Country? initiallySelected, List<String> favorite = const [], CountryPickerStyle style = const CountryPickerStyle()}) → Future<Country?> -
Present the modal bottom sheet and return the selected country.
If
countriesis empty, uses a small built-in demo list.