International Phone Field Continued

License: MIT pub package

✨ This is a continued and actively maintained version of intl_phone_field The original package is no longer maintained. This package continues active development and maintenance.

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

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.

🔧 About This Package

This is a continued version of the original intl_phone_field package created by @vanshg395 and later maintained by @marcaureln. Since the original repository is no longer maintained, we've created this continuation to:

  • 🐛 Fix bugs and issues
  • ✨ Add new features (including comprehensive localization support for 21 languages)
  • 📦 Keep dependencies up to date
  • 🔄 Maintain compatibility with latest Flutter versions

Original Repository: https://github.com/vanshg395/intl_phone_field

We thank the original authors and contributors for their excellent work!

Screenshots

📦 Installing

To use this package, add intl_phone_field_continued as a dependency in your pubspec.yaml file:

dependencies:
  intl_phone_field_continued: ^1.0.3

Or install it from the command line:

flutter pub add intl_phone_field_continued

Then run:

flutter pub get

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.

Maintainers

Current Maintainer:

Original Authors:

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.