Skip to main content

Usage Example

FFormProvider​

FFormProvider is a widget that allows you to access the form in the widget tree without passing it as a parameter.

Example​

FFormBuilder<LoginForm>(
form: _form,
builder: (context, form) {

FFormProvider.of<LoginForm>(context).email; // or form.email;
FFormProvider.of<LoginForm>(context).get<NameField>(); // or form.get<NameField>();

return YourForm();
},
)