international_phone_text_field 0.0.1+4 copy "international_phone_text_field: ^0.0.1+4" to clipboard
international_phone_text_field: ^0.0.1+4 copied to clipboard

A Flutter package for international phone field with country code.

International Phone Text Field ๐ŸŒ #

  • This package provides a Flutter widget that can be used to input international phone numbers.

  • It is highly customizable and can be used to input phone numbers in any format.

  • It also provides a way to validate the phone number and return the country code and the phone number.

  • It also comes with a build-in bottom sheet to select the country code.

Roadmap for next version #

  • Adding full support for dark and light theme
  • Adding ability to fully customize the text field

Follow and support me #

Telegram LinkedIn Instaram
Telegram LinkedIn Instagram

Features #

banner

There are two versions of the widget: #

One line version Two line version
verions1 verions1

Getting started #

Add the package to your pubspec.yaml file.

dependencies:
  international_phone_text_field: ^0.0.1+4

and run flutter pub get to install the package.

Import the package in your code.

import 'package:international_phone_text_field/international_phone_text_field.dart';

Usage #

To use this package, you need type the following code:

InternationalPhoneField(
  onChanged: (number) {
    print(number);
  },
)

โœŒ๏ธThis is minimal code to use the package

Additional information #

If you encounter any issues feel free to open an issue. If you feel the package is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.

12
likes
160
pub points
55%
popularity

Publisher

unverified uploader

A Flutter package for international phone field with country code.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

bloc, cupertino_icons, equatable, flutter, flutter_bloc, formz, mask_text_input_formatter

More

Packages that depend on international_phone_text_field