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.
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.
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
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.
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.
Vansh Goel 💻 |
KNO3 💻 |
Ling Li 💻 |
Anggara Putra Pratama 💻 |
JJ Geewax 💻 |
Keval Prajapati 💻 |
Guillaume Launay 💻 |
hans.huang 💻 📖 |
Gregor Weber 💻 |
Ooi Han Yi 💻 |
Jimmy Forrester-Fellowes 💻 |
This project is licensed under the MIT license. See LICENSE for more information.