Skip to content
pubscout

intl_phone_field

3.2.0, released 3 years ago by vanshgoel.me

A customised Flutter TextFormField for inputting international phone numbers with country codes.

WASM-readyQuiet but busy
$ flutter pub add intl_phone_field
Source repository

What it does

Provides a customized Flutter TextFormField widget that allows users to input international phone numbers along with their country codes via a dropdown selector. It supports features like initial country configuration, search within the country picker, and validation.

AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a form input specifically designed for international phone numbers.
  • You want a built-in country code dropdown picker attached to a text field.

Skip it when

  • You only need standard text inputs without phone number validation or country codes.

Strengths

  • Includes country code selection via a dropdown or picker dialog.
  • Supports country search by name or dial code.
  • Provides built-in validation options and custom styling properties.

Weaknesses

  • Relies entirely on the package's bundled country data which may require updates for changes in phone number lengths or country rules.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

IntlPhoneField(
    decoration: InputDecoration(
        labelText: 'Phone Number',
        border: OutlineInputBorder(
            borderSide: BorderSide(),
        ),
    ),
    initialCountryCode: 'IN',
    onChanged: (phone) {
        print(phone.completeNumber);
    },
)

Alternatives

Packages that do the same job and could replace intl_phone_field.