Skip to content

Latest commit

 

History

History
301 lines (265 loc) · 8.4 KB

CHANGELOG.md

File metadata and controls

301 lines (265 loc) · 8.4 KB

2.0.27

  • 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");

2.0.26

  • 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}'),
    );

2.0.25

  • 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

2.0.24

  • 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

2.0.23

  • Export CustomFlagBuilder
  • Add parameter useRootNavigator

2.0.22

  • Add support for Czech localization
  • typos Korean

2.0.21

  • Add support for Korean localization
  • Add support for Japanese localization
  • Add support for Indonesian localization
  • Fix Windows and web flag

2.0.20

  • Add support for Italian localization
  • Fix French Translations
  • UI filling fix

2.0.19

  • Add support for Dutch localization
  • Add parsePhoneCode and tryParsePhoneCode

2.0.18

  • Fix Hindi Translations
  • Removed old country codes for Kosovo (+381 & +386)

2.0.17

  • 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

2.0.16

  • Add support for Latvian localization
  • Add support for Lithuanian localization

2.0.15

  • 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

2.0.14

  • Add support for country search by phone code

2.0.13

  • 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}'),
    );

2.0.12

  • Update example android gradle
  • Kurdish translation for Curaçao name

2.0.11

  • 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}'),
    );

2.0.10

  • Add support for French localization
  • Add support for Kurdish localization

2.0.9

  • Add support for Estonian localization

2.0.8

  • 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}'),
    );

2.0.7

  • Add support for Turkish localization

2.0.6

  • Add support for Nepali and Hindi localization

2.0.5

  • 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}'),
    );

2.0.4

  • Add CountryParser

2.0.3

  • Add Ukrainian, Russian, and Polish translations
  • Add onClosed callback

2.0.2

  • Add support for Norwegian localization

2.0.1

  • 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}'),
    );

2.0.0

  • Migrated to null safety

1.1.4

  • Add support for Spanish and Portuguese localization.
  • If showPhoneCode is false remove duplicates country

1.1.3

  • Localize label and hint of search text field

1.1.2

  • 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}'),
     );

1.1.1

  • Search on localizations.

1.1.0

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

1.0.5

  • Update documentation.

1.0.4

  • Implement search.

1.0.3

  • Add show phone code option.

1.0.2

  • Add exclude countries option.
    Can be used to exclude(remove) one ore more country from the countries list
    showCountryPicker(
       context: context,
       exclude: <String>['KN', 'MF'], //It takes a list of country code(iso2).
       onSelect: (Country country) => print('Select country: ${country.displayName}'),
    );

1.0.1

  • Add documentation.

1.0.0

  • Initial developers preview release.