0 purchases
custom countries list
This is a Flutter custom country picker widget, which uses platforms specific picker components to show countries to the users.
Features #
Currently have only country selections and displaying country data like name, dia_code, code and flag.
Getting started #
Add the package to your pubspec.yaml:
custom_countries_list: 0.0.1
copied to clipboard
In your dart file, import the library:
import 'package:custom_countries_list/custom_countries_list.dart';
copied to clipboard
Show country picker using showCountryList:
showCountryList(
context: context,
onCountrySelected: (country) {
if (kDebugMode) {
print('selected country ${country?.name}');
}
},
height: 400.0,
);
copied to clipboard
Usage #
In your dart file, import the library:
import 'package:custom_countries_list/custom_countries_list.dart';
copied to clipboard
Show country picker using showCountryList:
showCountryList(
context: context,
onCountrySelected: (country) {
if (kDebugMode) {
print('selected country ${country?.name}');
}
},
height: 400.0,
);
copied to clipboard
Additional information #
The package is open to contribution, I will be adding more update to it. This is the first feature. You can also tell me what you want to see next.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.