[General]: Callback parameters on the current form state in FormBuilder.onChanged() #1430
Open
1 task done
Labels
enhancement
New feature or request
Is there an existing issue for this?
Package/Plugin version
7.1.1
What you'd like to happen
Would it be possible to provide a handle to the current form state in FormBuilder.onChanged(), so that the form data could be populated outside the form.
See more context info in the alternatives case and additional information.
Alternatives you've considered
Aditional information
We use FlutterFormBuilder to add extra fields, specified in JSON Schema. We have created a small factory method that creates a FormBuilder with fields populated based on the JSON Schema. In order to cope with rebuilds, we supply a GlobalKey as a key that we use to populate changes back to our JSON model, and onChanged hook that investigates the contents based on the FormBuilderState.
This works ok, but we have noticed one problem, and suspect another:
A sample on how we currently fetch and use the data in our factory that returns an instance of FormBuilder:
The text was updated successfully, but these errors were encountered: