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.
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.
- flutter_intl_phone_field
International phone number input with country picker, formatting, and validation for 250+ countries.
76Compare - intl_mobile_field
Customized Flutter TextFormField to input international mobile numbers with country codes.
73Compare - flutter_multi_formatter
Input formatters for international phone numbers, credit/debit cards, currencies, and custom masks.
75Compare - flutter_country_selector
A country picker widget to select a country, now re-exported from phone_form_field.
75Compare
Works with
Packages commonly used together with form_builder_phone_field: ones it builds on, ones built on it, and its own family.
- phone_numbers_parserform_builder_phone_field depends on itDart library for parsing, validating, and formatting international phone numbers.
- flutter_form_builderform_builder_phone_field depends on itHelps create forms in Flutter by removing boilerplate code and reusing validation.
- country_pickersform_builder_phone_field depends on itProvides country picker widgets with flags, ISO codes and phone prefixes.
- form_builder_validatorsSame familyA comprehensive collection of ready-made FormField validators for Flutter.
- form_builder_extra_fieldsSame familyAdditional ready-made form input fields for the flutter_form_builder package
- form_builder_image_pickerSame familyFormBuilder field widget to pick images from gallery or camera.
- form_builder_file_pickerSame familyFile picker input field for the flutter_form_builder package.
- flutter_loginBuilt on form_builder_phone_fieldA ready-made login and signup widget with animated effects.