Skip to content
pubscout

intl_phone_number_input

0.7.5, released a year ago by an unverified publisher

A Flutter widget for inputting international phone numbers with country code selectors.

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

What it does

Provides a customizable phone number input field that formats input according to international standards using Google's libphonenumber. It includes country code selectors with dropdown, bottom sheet, and dialog modes.

AI-written summary of version 0.7.5, 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 require automatic phone number formatting and validation.

Skip it when

  • You are handling standard text fields without phone-specific requirements.
  • You want a zero-dependency solution for simple phone strings.

Strengths

  • Supports multiple country selector UI modes (dropdown, bottom sheet, dialog).
  • Real-time as-you-type formatting.
  • Supports custom lists of allowed countries.

Weaknesses

  • Relies on external platform-specific phone parsing libraries which can occasionally add maintenance overhead.
  • Potential exceptions if unformatted phone numbers are passed without an ISO code.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3
InternationalPhoneNumberInput(
  onInputChanged: (PhoneNumber number) {
    print(number.phoneNumber);
  },
  selectorConfig: SelectorConfig(
    selectorType: PhoneInputSelectorType.DROPDOWN,
  ),
  ignoreBlank: false,
  autoValidateMode: AutovalidateMode.disabled,
  selectorTextStyle: TextStyle(color: Colors.black),
  initialValue: PhoneNumber(isoCode: 'NG'),
  textFieldController: TextEditingController(),
  formatInput: false,
)

Alternatives

Packages that do the same job and could replace intl_phone_number_input.

  • intl_phone_field

    A popular alternative form field package for international phone numbers with built-in validation.

Works with

Packages commonly used together with intl_phone_number_input: ones it builds on, ones built on it, and its own family.