widgets/form_renderer library

Renders a dynamic form in Flutter based on a Form.io form definition.

This widget receives a FormModel and builds a corresponding widget tree based on its list of components. It supports dynamic user input handling, required field validation, and data collection for form submission.

When a component of type "button" and action "submit" is tapped, the form data is validated and submitted via onSubmit.

Classes

FormRenderer

Typedefs

OnFormChanged = void Function(Map<String, dynamic> data)
OnFormSubmitFailed = void Function(String error)
OnFormSubmitted = void Function(Map<String, dynamic> data)