-
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.
- Adding full support for dark and light theme
- Adding ability to fully customize the text field
Telegram | Instaram | |
---|---|---|
One line version | Two line version |
---|---|
![]() |
![]() |
Add the package to your pubspec.yaml
file.
dependencies:
international_phone_text_field: ^0.0.1+5
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';
To use this package, you need type the following code:
InternationalPhoneField(
onChanged: (number) {
print(number);
},
)
✌️This is minimal code to use the package
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.