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
In your dart file, import the library:
import 'package:custom_countries_list/custom_countries_list.dart';
Show country picker using showCountryList
:
showCountryList(
context: context,
onCountrySelected: (country) {
if (kDebugMode) {
print('selected country ${country?.name}');
}
},
height: 400.0,
);
Usage
In your dart file, import the library:
import 'package:custom_countries_list/custom_countries_list.dart';
Show country picker using showCountryList
:
showCountryList(
context: context,
onCountrySelected: (country) {
if (kDebugMode) {
print('selected country ${country?.name}');
}
},
height: 400.0,
);
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.