Releases: Daniel-Ioannou/flutter_country_picker
Releases · Daniel-Ioannou/flutter_country_picker
v1.1.2
In this version:
- 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}'), );
v1.1.1
In this version:
- Search on localizations.
v1.1.0
In this version:
Implement localization.
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(),
);
Supported languages:
- English
- Simplified Chinese
- Traditional Chinese
v1.0.5
In this version:
- Update documentation.
v1.0.4
In this version:
- Implement search.
v1.0.3
In this version
- Add show phone code option.
v1.0.2
In this version:
- Add exclude countries option.
showCountryPicker(
context: context,
exclude: <String>['KN', 'MF'], //It takes a list of country code(iso2).
onSelect: (Country country) => print('Select country: ${country.displayName}'),
);
v1.0.1
In this version:
- Add documentation.
v1.0.0
In this version:
- Initial developers preview release.