country_selector 1.0.2+4 country_selector: ^1.0.2+4 copied to clipboard
A flutter widget, You can use it to get region code and this widget allows you to filter the country code items by app bar search or the right side index bar.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add country_selector
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
country_selector: ^1.0.2+4
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:country_selector/country_selector.dart';