• Stars
    star
    177
  • Rank 215,985 (Top 5 %)
  • Language
    Dart
  • License
    MIT License
  • Created over 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A customised Flutter TextFormField to input international phone number along with country code.

International Phone Field Package

All Contributors

pub package

A customised Flutter TextFormField to input international phone number along with country code.

This widget can be used to make customised text field to take phone number input for any country along with an option to choose country code from a dropdown.

Screenshots

Installing

To use this package:

Run this command:

flutter pub add intl_phone_field

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

dependencies:
  intl_phone_field: ^3.1.0

How to Use

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

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

Maintainers

Contributors

Vansh Goel
Vansh Goel

💻
KNO3
KNO3

💻
Ling Li
Ling Li

💻
Anggara Putra Pratama
Anggara Putra Pratama

💻
JJ Geewax
JJ Geewax

💻
Keval Prajapati
Keval Prajapati

💻
Guillaume Launay
Guillaume Launay

💻
hans.huang
hans.huang

💻 📖

LICENSE

License: MIT

More Repositories

1

bubble_timeline

A Flutter Widget to make interactive timeline widget.
Dart
11
star
2

vanshg395

4
star
3

edumart

An App for Educational E-Commerce for Lean Startup Management Project.
Dart
3
star
4

trare

A Flutter App using Sockets which allows users to play Truth n Dare in real time.
Dart
3
star
5

responsive_scaffold_nullsafe

Dart
3
star
6

devsoc_admin

Dart
2
star
7

devsoc_app

Dart
2
star
8

onlala_suppliers

Dart
1
star
9

hunt_portal

PHP
1
star
10

meals-app

Objective-C
1
star
11

my-readme-template

1
star
12

flutterportfolio

Dart
1
star
13

shop_app

Objective-C
1
star
14

ecommerce-appkit

Dart
1
star
15

rest-api-tutorial

JavaScript
1
star
16

sleep_app

Dart
1
star
17

first-django-project

CSS
1
star
18

ccs-19

HTML
1
star
19

flutterwebinar

Dart
1
star
20

portfolio-temp

Dart
1
star
21

color_game

Objective-C
1
star
22

todolist-api

Python
1
star
23

faculty_review

Dart
1
star
24

ffds-app

Dart
1
star
25

great_places

Dart
1
star
26

first-express-app

JavaScript
1
star
27

Flutter-Template

Dart
1
star
28

maptai

Dart
1
star
29

physio_app

Dart
1
star
30

csedvit.com

JavaScript
1
star
31

flutter_complete_guide

Dart
1
star
32

notif_demo

Dart
1
star
33

web_basics

Dart
1
star
34

outpost-apptitude

Dart
1
star
35

expenses_app

Dart
1
star
36

cake_admin

Admin Web Portal for Just Bake
Dart
1
star
37

pageviewtest

A very basic website template using Flutter Web
Dart
1
star
38

sample

1
star
39

pyBill-BillingSoftwareOnPython

pyBills - a simple billing solution
Python
1
star
40

onlala_shopping

Dart
1
star
41

Flutter-Master

Some helpful Code Snippets for Flutter
Dart
1
star
42

flutter_web_template

This is a template for my Flutter Web Projects
Dart
1
star
43

nl.csedvit.com

HTML
1
star
44

vanshg395.github.io

My Portfolio
CSS
1
star
45

cake_app

Dart
1
star