phone_input 1.0.0 copy "phone_input: ^1.0.0" to clipboard
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';
36
likes
150
points
1.16k
downloads

Publisher

verified publisherlanars.com

Weekly Downloads

This package is designed to simplify the process of capturing phone numbers from users.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

diacritic, flutter, flutter_localizations, flutter_svg, intl, meta

More

Packages that depend on phone_input