phone_text_form_field 0.0.1
phone_text_form_field: ^0.0.1 copied to clipboard
Flutter package to make easy phone input
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add phone_text_form_field
With Flutter:
$ flutter pub add phone_text_form_field
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
phone_text_form_field: ^0.0.1
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:phone_text_form_field/models/bottomsheet_config.dart';
import 'package:phone_text_form_field/models/country_code_model.dart';
import 'package:phone_text_form_field/models/country_code_model.g.dart';
import 'package:phone_text_form_field/models/country_config.dart';
import 'package:phone_text_form_field/models/textfield_config.dart';
import 'package:phone_text_form_field/phone_number_field.dart';
import 'package:phone_text_form_field/util/country_list.dart';
import 'package:phone_text_form_field/util/general_util.dart';
import 'package:phone_text_form_field/view/country_code_bottom_sheet.dart';
import 'package:phone_text_form_field/view/country_widget.dart';
import 'package:phone_text_form_field/view/flag_view.dart';
import 'package:phone_text_form_field/view/mi_textfield.dart';