Skip to content

A specialized Flutter TextFormField designed for seamless input of international phone numbers, complete with country code selection.

License

Notifications You must be signed in to change notification settings

Alex-Kocharyan/intl_phone_field_extended

 
 

Repository files navigation

International Phone Field Package

CI License: MIT

A specialized Flutter TextFormField designed for seamless input of international phone numbers, complete with country code selection.

Allows users to input phone numbers for any country and provides a dropdown menu for selecting the appropriate country code.

About

This is intl_phone_field_extended, a fork of the original intl_phone_field package.

This fork introduces important fixes and will continue delivering updates and improvements over time.

Screenshots

Get started

To use this package, add this to your pubspec.yaml

dependencies:
  intl_phone_field_extended:
    git:
      url: git://github.com/Alex-Kocharyan/intl_phone_field_extended.git
      ref: master

How to Use

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

IntlPhoneField(
    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.

Maintainer

Previous 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

💻
Ooi Han Yi
Ooi Han Yi

💻
Jimmy Forrester-Fellowes
Jimmy Forrester-Fellowes

💻

LICENSE

This project is licensed under the MIT license. See LICENSE for more information.

About

A specialized Flutter TextFormField designed for seamless input of international phone numbers, complete with country code selection.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 99.0%
  • Other 1.0%