phone_input 1.0.0 phone_input: ^1.0.0 copied to clipboard
This package is designed to simplify the process of capturing phone numbers from users.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add phone_input
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
phone_input: ^1.0.0
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:phone_input/l10n/generated/phone_field_localization.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_ar.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_de.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_el.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_en.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_es.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_fa.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_fr.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_hi.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_it.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_nl.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_pt.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_ru.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_sv.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_tr.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_uk.dart';
import 'package:phone_input/l10n/generated/phone_field_localization_zh.dart';
import 'package:phone_input/phone_input_package.dart';