Skip to content
pubscout

phone_form_field

12.0.5, released yesterday by an unverified publisher

Flutter phone input FormField with internationalization, validation, and country selector.

WASM-readyUses material_ui
$ flutter pub add phone_form_field
Source repository

What it does

Provides a FormField widget for international phone number input with formatting, validation, and a built-in country selector supporting multiple navigation styles (pages, dialogs, sheets). It localizes strings and country names into over 30 languages.

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

Use it when

  • You need a form input specifically for international phone numbers.
  • You want built-in validation for mobile and fixed-line phone formats.
  • You require a country code selector with built-in search and flag display.

Skip it when

  • You only need a standard text input without specialized phone formatting or country selection.
  • You require features not supported by the underlying phone parsing library.

Strengths

  • Built-in localization for 32 languages.
  • Flexible presentation options for the country selector (page, dialog, bottom sheet).
  • Integrates seamlessly as a standard Flutter FormField supporting autofill and copy-paste.

Weaknesses

  • Web platform requires preloading flag assets to prevent flashing.
  • Strict dependency on specific Flutter and Dart versions.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
6

Requires adding PhoneFieldLocalization delegates to your MaterialApp for full localization support.

import 'package:phone_form_field/phone_form_field.dart';

PhoneFormField(
  validator: PhoneValidator.required(context),
  countrySelectorNavigator: const CountrySelectorNavigator.page(),
)

Alternatives

Packages that do the same job and could replace phone_form_field.

Works with

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