Skip to content

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

License

Notifications You must be signed in to change notification settings

HalimWagih66/intl_phone_field

This branch is 3 commits ahead of, 1 commit behind vanshg395/intl_phone_field:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a8e77fe Β· Dec 10, 2023
Oct 13, 2023
Jun 23, 2023
Nov 19, 2020
Dec 10, 2023
Dec 10, 2023
Jun 24, 2023
Oct 13, 2023
Mar 27, 2022
May 26, 2020
Jan 15, 2022
May 26, 2020
May 26, 2020
Oct 15, 2023
Mar 11, 2021
Oct 15, 2023
Jun 23, 2023
Dec 10, 2023
Oct 15, 2023

Repository files navigation

International Phone Field Package

pub package CI License: MIT

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

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

dependencies:
  intl_phone_field: ^<latest_version>

Sometimes you may want to use the latest version of the package, instead of a published version. To do that, use the git syntax:

dependencies:
  intl_phone_field:
    git:
      url: git://github.com/vanshg395/intl_phone_field.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.

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 customised Flutter TextFormField to input international phone number along with country code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 99.0%
  • Other 1.0%