lingua_countries 0.0.7 lingua_countries: ^0.0.7 copied to clipboard
Library for internal countries localization.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add lingua_countries
With Flutter:
$ flutter pub add lingua_countries
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
lingua_countries: ^0.0.7
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:lingua_countries/countries.dart';
import 'package:lingua_countries/generated/codegen_loader.g.dart';
import 'package:lingua_countries/generated/locale_keys.g.dart';