Skip to content
pubscout

form_builder_phone_field

3.1.1, released 9 months ago by flutterformbuilderecosystem.com

International phone number input field for the flutter_form_builder package.

WASM-ready
$ flutter pub add form_builder_phone_field
Source repository

What it does

Provides a form field widget equipped with a country selector and automatic parsing of international phone numbers, integrating seamlessly with FlutterFormBuilder.

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

Use it when

  • You are already using flutter_form_builder and need an international phone number input.
  • You need built-in country selection and phone number parsing out of the box.

Skip it when

  • You are not using the flutter_form_builder ecosystem.
  • You only need a simple, standard text field without country selection logic.

Strengths

  • Integrates smoothly with flutter_form_builder.
  • Supports automatic international phone number parsing via the phone_numbers_parser package.
  • Includes a built-0-in country picker and priority ISO code sorting.

Weaknesses

  • Strictly depends on the flutter_form_builder package ecosystem.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3
FormBuilderPhoneField(
  name: 'phone_number',
  decoration: const InputDecoration(
    labelText: 'Phone Number',
    hintText: 'Hint',
  ),
  priorityListByIsoCode: ['KE'],
  validator: FormBuilderValidators.compose([
    FormBuilderValidators.required(),
  ]),
)

Alternatives

Packages that do the same job and could replace form_builder_phone_field.

Works with

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