country_picker 1.0.1 copy "country_picker: ^1.0.1" to clipboard
country_picker: ^1.0.1 copied to clipboard

outdated

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

Country picker (Developers Preview) #

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

n1

Getting Started #

Add the package to your pubspec.yaml:

country_picker: ^1.0.1

In your dart file, import the library:

import 'package:country_picker/country_picker.dart';

Show country picker using showCountryPicker:

showCountryPicker(
 context: context,
 onSelect: (Country country) {
    print('Select country: ${country.displayName}');
 },
);

Parameters: #

  • onSelect: Called when a country is select. The country picker passes the new value to the callback (required)

Contributions #

Contributions of any kind are more than welcome! Feel free to fork and improve country_code_picker in any way you want, make a pull request, or open an issue.

343
likes
0
pub points
99%
popularity

Publisher

unverified uploader

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on country_picker