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.