Why Not ...?
FormState
- Requires controllers or state to track fields' values (i.e. You need to create
TextEditingController
to getTextField
value). - Requires a separate state to assign API errors require to fields.
- Requires extra state to track form's status (Loading, Invalid, etc.).
Flutter Form Builder
- Requires a separate state to assign API errors require to fields.
- Requires a key to be able to access form.
- Requires explicit calls for
save
andvalidate
.
Reactive Forms
- Requires a lot of boilerplate (due to the model-driven approach).
- Complex and has a higher learning curve.