json_form_builder library
A highly advanced, reusable, JSON-driven form builder for Flutter.
Build dynamic, beautiful, and responsive forms from JSON with support for all major field types, custom theming, validation (sync/async), conditional logic, and user-defined custom fields.
Exports:
- JsonFormBuilder: The main widget for building forms from JSON.
- FormConfig, FieldConfig: Models for form and field configuration.
- FormTheme: Theming support for forms and fields.
Classes
- FieldConfig
- Model representing the configuration for a single form field.
- FormConfig
- Model representing the configuration for a form.
- FormTheme
- JsonFormBuilder
- A widget that builds a dynamic form from a JSON configuration.
- SectionConfig
- Model representing a section in the form.
Typedefs
-
FieldWidgetBuilder
= Widget Function(FieldConfig config, {dynamic initialValue, ValueChanged? onChanged, ValueChanged<
String?> ? onValidation, FormTheme? theme})