Last updated:
0 purchases
international phone text field
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
Features #
There are two versions of the widget: #
One line version
Two line version
Getting started #
Add the package to your pubspec.yaml file.
dependencies:
international_phone_text_field: ^0.0.1+4
copied to clipboard
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';
copied to clipboard
Usage #
To use this package, you need type the following code:
InternationalPhoneField(
onChanged: (number) {
print(number);
},
)
copied to clipboard
βοΈ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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.