phone_number_controller 1.0.1 copy "phone_number_controller: ^1.0.1" to clipboard
phone_number_controller: ^1.0.1 copied to clipboard

A TextEditingController formatting international phone numbers as you type them.

phone_number_controller #

pub pub points popularity likes

This plugin provides a TextEditingController that formats international phone numbers as you type them.

Demo #

demo

Usage #

Two steps:

  1. In a stateful widget, define a PhoneNumberController:
final _controller = PhoneNumberController(countryCode: 'us');
  1. When building the text field, specify the controller:
TextFormField(
    controller: _controller,
    keyboardType: TextInputType.phone,
    ...
);
7
likes
0
pub points
48%
popularity

Publisher

verified publisherquis.co

A TextEditingController formatting international phone numbers as you type them.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, libphonenumber

More

Packages that depend on phone_number_controller