phone_input_text_field 0.0.1 copy "phone_input_text_field: ^0.0.1" to clipboard
phone_input_text_field: ^0.0.1 copied to clipboard

discontinued

A textField to input phone number!

phone_input_text_field #

A Flutter widget for input phone number.

Screenshoot #

drawing drawing drawing

Getting Started #

In your flutter project add the dependency:

dependencies:
  ...
  phone_input_text_field: ^0.0.1

For help getting started with Flutter, view the online documentation.

How to use #

Import phone_input_text_field.dart

import 'package:phone_input_text_field/phone_input_text_field.dart';

All it needs is a callback function

/// 
/// Callback type define
/// Called when textcontroller get whole phone number
///
typedef void OnPhoneNumberComplete(String phoneNum);

Then the phone input textfield can be easily used as a widget.

PhoneInputTextField(onPhoneNumComplete: (String phoneNum) {
    //do what ever you want with phoneNum
});

Future Plans #

  • Change default country support
  • Search countries
  • TextField style
  • Country picker style
  • Include or exclude countries And more...

Conception #

This package is inspired by https://github.com/chronotruck/FlagPhoneNumber

1
likes
30
pub points
13%
popularity

Publisher

unverified uploader

A textField to input phone number!

Homepage

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on phone_input_text_field