- Add support for Persian (FA) localization
- Add support for Danish (DA) localization
- Fix Ireland in French localization
- Fix East Timor in Arabic localization
- Fix Benin in russian localization
- Change Macedonia's country name to North Macedonia
- Add
findByPhoneCode
: Returns a single country if it matches the given phone code.var austria =CountryService().findByPhoneCode("43");
- Fix Turkish localization
- Add
moveAlongWithKeyboard
: An optionalargument can be used to move bottomSheet along with keyboard when textfield is focused. It could be useful when bottomSheet height is smaller than half of the screen. Otherwise it shouldn't be set. It has a default value of false.showCountryPicker( context: context, moveAlongWithKeyboard: true, countryListTheme: CountryListThemeData( bottomSheetHeight: 500, ), onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Add support for Haitian Creole (HT) localization
- Add support for Slovak (SK) localization
- Add support for Bulgarian (BG) localization
- Add support for Romanian (RO) localization
- Add support for Catala (CA) localization
- Add support for Hebrew (HE) localization
- Add option for bottom sheet Width.
showCountryPicker( context: context, countryListTheme: CountryListThemeData( bottomSheetWidth: 500, // Optional. Country list modal Width ), onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Add
emojiFontFamilyFallback
- Export
CustomFlagBuilder
- Add parameter
useRootNavigator
- Add support for Czech localization
- typos Korean
- Add support for Korean localization
- Add support for Japanese localization
- Add support for Indonesian localization
- Fix Windows and web flag
- Add support for Italian localization
- Fix French Translations
- UI filling fix
- Add support for Dutch localization
- Add
parsePhoneCode
andtryParsePhoneCode
- Fix Hindi Translations
- Removed old country codes for Kosovo (+381 & +386)
- Add option to hide search bar
showCountryPicker( context: context, showSearch: false, onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Add
searchTextStyle
showCountryPicker( context: context, countryListTheme: CountryListThemeData( searchTextStyle: TextStyle( // Optional. Styles the text in the search field color: Colors.blue, fontSize: 18, ), ), onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Removed the need of
worldwide.png
and changed to '🌍' emoji
- Add support for Latvian localization
- Add support for Lithuanian localization
- Add support for German localization
- Add
favorite
option.- Can be used to to show the favorite countries at the top of the list.
- It takes a list of country code(iso2).
showCountryPicker( context: context, favorite: <String>['SE', 'MC'], onSelect: (Country country) { print('Select country: ${country.displayName}'); }, );
- Implemented Country Service
- package assets
- Add support for country search by phone code
- Add getter for flag emoji in
Country
model - Add option for bottom sheet height.
showCountryPicker( context: context, countryListTheme: CountryListThemeData( bottomSheetHeight: 500, // Optional. Country list modal height ), onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Update example android gradle
- Kurdish translation for Curaçao name
- Eswatini name
- Italy code at Turkish localization
- Add optional argument for showing "World Wide" option at the beginning of the list
showCountryPicker( context: context, showWorldWide: true, onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Add support for French localization
- Add support for Kurdish localization
- Add support for Estonian localization
- Add support for Arabic localization
- Add support for Croatian localization
- Add options to autofocus at search TextField.
showCountryPicker( context: context, searchAutofocus: true, onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Add support for Turkish localization
- Add support for Nepali and Hindi localization
- Add styling options for the border-radius and the search field.
showCountryPicker( context: context, countryListTheme: CountryListThemeData( // Optional. Sets the border radius for the bottomsheet. borderRadius: BorderRadius.only( topLeft: Radius.circular(40.0), topRight: Radius.circular(40.0), ), // Optional. Styles the search field. inputDecoration: InputDecoration( labelText: 'Search', hintText: 'Start typing to search', preIcon: const Icon(Icons.search), border: OutlineInputBorder( borderSide: BorderSide( color: const Color(0xFF8C98A8).withOpacity(0.2), ), ), ), ), onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Add
CountryParser
- Add Ukrainian, Russian, and Polish translations
- Add
onClosed
callback
- Add support for Norwegian localization
- Implemented country list theme
showCountryPicker( context: context, countryListTheme: CountryListThemeData( flagSize: 25, backgroundColor: Colors.white, textStyle: TextStyle(fontSize: 16, color: Colors.blueGrey), ), onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Migrated to null safety
- Add support for Spanish and Portuguese localization.
- If
showPhoneCode
is false remove duplicates country
- Localize label and hint of search text field
- Add support for Greek localization.
- At search change contains to startsWith.
- Add country filter option.
- Can be used to uses filter the countries list (optional).
- It takes a list of country code(iso2).
- Can't provide both exclude and countryFilter
showCountryPicker( context: context, countryFilter: <String>['AT', 'GB', 'DK', 'DE', 'FR', 'GR'], //It takes a list of country code(iso2). onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Search on localizations.
Add the CountryLocalizations.delegate
in the list of your app delegates.
MaterialApp(
supportedLocales: [
const Locale('en'),
const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'), // Generic Simplified Chinese 'zh_Hans'
const Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'), // Generic traditional Chinese 'zh_Hant'
],
localizationsDelegates: [
CountryLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
],
home: HomePage(),
);
- English
- Simplified Chinese
- Traditional Chinese
- Update documentation.
- Implement search.
- Add show phone code option.
- Add exclude countries option.
Can be used to exclude(remove) one ore more country from the countries listshowCountryPicker( context: context, exclude: <String>['KN', 'MF'], //It takes a list of country code(iso2). onSelect: (Country country) => print('Select country: ${country.displayName}'), );
- Add documentation.
- Initial developers preview release.