country_code_text_field 1.0.0 copy "country_code_text_field: ^1.0.0" to clipboard
country_code_text_field: ^1.0.0 copied to clipboard

outdated

Introducing the "Country Code Text Field" Flutter package! Simplify mobile login for users worldwide with a customizable text field displaying country flags and codes. The user-friendly interface allo [...]

Installing #

To use this package:

Run this command:

flutter pub add country_code_text_field

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

dependencies:
  country_code_text_field: ^1.0.0

How to Use #

Simply create a CountryCodeTextField widget, and pass the required params:

CountryCodeTextField(
    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.

LICENSE #

License: MIT

3
likes
0
points
400
downloads

Publisher

unverified uploader

Weekly Downloads

Introducing the "Country Code Text Field" Flutter package! Simplify mobile login for users worldwide with a customizable text field displaying country flags and codes. The user-friendly interface allows easy search and selection of a country code, streamlining login and removing the need for manual input. Versatile and customizable, this package is ideal for social media or e-commerce platforms, ensuring seamless login experiences for users regardless of location.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on country_code_text_field