countries_list 0.1.6 countries_list: ^0.1.6 copied to clipboard
ISO-3166 Country and Dependent Territories Lists with UN Regional Codes. Country object contains phone code, flag emoji, alpha1, alpha2 etc. You can use it for creating your own country picker.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add countries_list
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
countries_list: ^0.1.6
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:countries_list/countries_list.dart';