flutter_country_picker

A flutter package to select a country from a list of countries.

MIT License

Stars
120
Committers
40

Bot releases are hidden (Show)

flutter_country_picker - v2.0.26 Latest Release

Published by Daniel-Ioannou 5 months ago

In this version:

  • 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}'),
    );
    
flutter_country_picker - v2.0.25

Published by Daniel-Ioannou 8 months ago

In this version:

  • 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
flutter_country_picker - v2.0.24

Published by Daniel-Ioannou 9 months ago

In this version:

  • 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
flutter_country_picker - V2.0.23

Published by Daniel-Ioannou 11 months ago

In this version:

  • Export CustomFlagBuilder
  • Add parameter useRootNavigator
flutter_country_picker - V2.0.22

Published by Daniel-Ioannou 12 months ago

In this version:

  • Add support for Czech localization
  • Fix typos Korean
flutter_country_picker - v2.0.21

Published by Daniel-Ioannou about 1 year ago

In this version:

  • Add support for Korean localization
  • Add support for Japanese localization
  • Add support for Indonesian localization
  • Fix Windows and web flag
flutter_country_picker - V2.0.20

Published by Daniel-Ioannou over 1 year ago

In this version:

  • Add support for Italian localization
  • Fix French Translations
  • UI filling fix
flutter_country_picker - V2.0.19

Published by Daniel-Ioannou almost 2 years ago

In this version:

  • Add support for Dutch localization
  • Add parsePhoneCode and tryParsePhoneCode
flutter_country_picker - V2.0.18

Published by Daniel-Ioannou almost 2 years ago

In this version:

  • Fix Hindi Translations
  • Removed old country codes for Kosovo (+381 & +386)
flutter_country_picker - V2.0.17

Published by Daniel-Ioannou almost 2 years ago

In this version:

  • 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
flutter_country_picker - V2.0.16

Published by Daniel-Ioannou about 2 years ago

In this version:

  • Add support for Latvian localization
  • Add support for Lithuanian localization
flutter_country_picker - V2.0.15

Published by Daniel-Ioannou over 2 years ago

In this version:

  • Implemented Country Service
  • 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}');
        },
      );
      
  • Fix package assets
flutter_country_picker - V2.0.14

Published by Daniel-Ioannou over 2 years ago

In this version:

  • Add support for country search by phone code
flutter_country_picker - V2.0.13

Published by Daniel-Ioannou over 2 years ago

In this version:

  • 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}'),
    );
    
flutter_country_picker - V2.0.12

Published by Daniel-Ioannou over 2 years ago

In this version:

  • Fix Kurdish translation for Curaçao name
  • Update example android gradle
flutter_country_picker - V2.0.11

Published by Daniel-Ioannou over 2 years ago

In this version:

  • Fix Eswatini name
  • Fix 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}'),
    );
    
flutter_country_picker - v2.0.10

Published by Daniel-Ioannou over 2 years ago

In this version

  • Add support for French localization
  • Add support for Kurdish localization
flutter_country_picker - V2.0.9

Published by Daniel-Ioannou almost 3 years ago

In this version

  • Add support for Estonian localization
flutter_country_picker - v2.0.8

Published by Daniel-Ioannou about 3 years ago

In this version:

  • 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}'),
    );
    
flutter_country_picker - v2.0.7

Published by Daniel-Ioannou about 3 years ago

In this version:

  • Add support for Turkish localization
Package Rankings
Top 3.85% on Pub.dev
Badges
Extracted from project README
pub package
Related Projects