intl_phone_field2 3.3.4 copy "intl_phone_field2: ^3.3.4" to clipboard
intl_phone_field2: ^3.3.4 copied to clipboard

A customised Flutter TextFormField to input international phone number along with country code.

International Phone Field Package #

All Contributors

pub package

This Package is a fork of "intl_phone_field" (https://pub.dev/packages/intl_phone_field).

This widget can be used to make customised text field to take phone number input for any country along with an option to choose country code from a dropdown.

Screenshots #

Installing #

To use this package:

Run this command:

flutter pub add intl_phone_field2

Or, add the following to your pubspec.yaml file:

dependencies:
  intl_phone_field: ^3.2.2

How to Use #

Simply create a IntlPhoneField2 widget, and pass the required params:

IntlPhoneField2(
    decoration: InputDecoration(
        labelText: 'Phone Number',
        border: OutlineInputBorder(
            borderSide: BorderSide(),
        ),
    ),
    initialCountryCode: 'IN',
    onChanged: (phone) {
        print(phone.completeNumber);
    },
)

Use initialCountryCode to set an initial Country Code.

Contributing #

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Comment on Issue or Pull Request, asking @all-contributors to add a contributor:

@all-contributors please add @<username> for <contributions>

<contributions>: See the Emoji Key (Contribution Types Reference) for a list of valid contribution types.

Maintainers #

Contributors #

Vansh Goel
Vansh Goel

💻
KNO3
KNO3

💻
Ling Li
Ling Li

💻
Anggara Putra Pratama
Anggara Putra Pratama

💻
JJ Geewax
JJ Geewax

💻
Keval Prajapati
Keval Prajapati

💻
Guillaume Launay
Guillaume Launay

💻
hans.huang
hans.huang

💻 📖
Gregor Weber
Gregor Weber

💻

LICENSE #

License: MIT

6
likes
125
pub points
79%
popularity

Publisher

unverified uploader

A customised Flutter TextFormField to input international phone number along with country code.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on intl_phone_field2