Skip to content
pubscout

reactive_phone_form_field

5.0.2, released a year ago by an unverified publisher

Reactive wrapper for phone_form_field to use with reactive_forms.

WASM-ready
$ flutter pub add reactive_phone_form_field
Source repository

What it does

Provides a ReactivePhoneFormField widget that connects phone_form_field to reactive_forms. Includes a PhoneNumberValueAccessor to map phone values to form controls.

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

Use it when

  • You are already using reactive_forms and need a phone number input field.
  • You want automatic form‑state handling and validation for phone numbers.

Skip it when

  • You are not using reactive_forms (e.g., using Flutter's native Form).
  • You need a highly custom phone UI not offered by phone_form_field.

Strengths

  • Seamless integration with reactive_forms
  • Keeps phone_form_field features like country selector and validation
  • Supports latest reactive_forms (18.x)

Weaknesses

  • Only works with reactive_forms, not standard Form widgets
  • Documentation is minimal

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
final form = fb.group({
  'phone': FormControl<String>(validators: [Validators.required]),
});

ReactivePhoneFormField(
  formControlName: 'phone',
  // optional phone_form_field parameters
);

Alternatives

Packages that do the same job and could replace reactive_phone_form_field.

Works with

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