Flutter Form Builder reduces boilerplate when building data collection forms in Flutter. It bundles validation hooks, change handling, and many prebuilt field widgets.
Overview
Flutter Form Builder helps teams assemble forms in Flutter without wiring every field, validator, and state listener by hand. A FormBuilder wrapper coordinates named fields, collects values, validates input, and reacts when field content or validity changes.
The package ships ready-made fields such as text inputs, checkboxes, checkbox groups, radio groups, dropdowns, switches, sliders, range sliders, date and time pickers, date ranges, and chip-style single or multi selectors. Shared parameters include name keys, initial values, enabled state, decoration, validators, onChanged handlers, and optional value transformers.
Validators are expected from a separate form_builder_validators package. You can validate and read saved or instant values, focus the first invalid field, patch multiple values programmatically, invalidate fields with custom errors, and build custom fields through FormBuilderField.
Starting in recent major versions the project migrated some Material types to the material_ui library. No platform-specific server setup is required beyond adding the dependency to a Flutter application.
Key features
- Central FormBuilder state
- Many built-in field widgets
- Validators and compose rules
- Value and instantValue access
- Programmatic patch and invalidate
- Custom FormBuilderField support
- Conditional validation patterns
- Focus first invalid field
Use cases
- Sign-up and login forms
- Settings and profile editors
- Survey-style data capture
- Dynamic and conditional forms
- Multi-step wizards with validation