intl_phone_field_with_validator

Last updated:

0 purchases

intl_phone_field_with_validator Image
intl_phone_field_with_validator Images
Add to Cart

Description:

intl phone field with validator

International Phone Field Package #




This package was make changes/improvement on intl_phone_field's phone number validation part to suite my requirement.
Screenshots #

Installing #
To use this package:
Run this command:
flutter pub add intl_phone_field_with_validator
copied to clipboard
Or, add the following to your pubspec.yaml file:
dependencies:
intl_phone_field_with_validator: ^0.1.0
copied to clipboard
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);
},
)
copied to clipboard
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>
copied to clipboard
<contributions>: See the Emoji Key (Contribution Types Reference) for a list of valid contribution types.
Maintainers #

Mee Yen

Contributors #



LICENSE #

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.