country_pickers_v2 3.0.1 country_pickers_v2: ^3.0.1 copied to clipboard
Countries, codes, flags and several way of picking them at your service...one widget away...
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add country_pickers_v2
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
country_pickers_v2: ^3.0.1
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_pickers_v2/countries.dart';
import 'package:country_pickers_v2/country.dart';
import 'package:country_pickers_v2/country_picker_cupertino.dart';
import 'package:country_pickers_v2/country_picker_dialog.dart';
import 'package:country_pickers_v2/country_picker_dropdown.dart';
import 'package:country_pickers_v2/country_pickers.dart';
import 'package:country_pickers_v2/utils/my_alert_dialog.dart';
import 'package:country_pickers_v2/utils/typedefs.dart';
import 'package:country_pickers_v2/utils/utils.dart';