intl_phone_field_localized 3.1.0 copy "intl_phone_field_localized: ^3.1.0" to clipboard
intl_phone_field_localized: ^3.1.0 copied to clipboard

A customised Flutter TextFormField to input international phone number along with country code, displaying countries name in french.

International Phone Field Package in French #

All Contributors

Pub

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.

Screenshots #

Installing #

To use this package:

Run this command:

flutter pub add intl_phone_field_localized
copied to clipboard

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

dependencies:
  intl_phone_field_localized: ^3.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 #

Contributors #

LICENSE #

License: MIT

0
likes
140
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

2024.07.06 - 2025.01.18

A customised Flutter TextFormField to input international phone number along with country code, displaying countries name in french.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on intl_phone_field_localized