Replies: 1 comment
-
the only major setback I have with this, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
just because the package doesn't have this feature,
I had to build my own.
In a lot of forms, some fields (for example dropdowns) have their content set after choosing another field,
which means that after that 'parent' field has changed, that content should also change.
of course it's possible to do this on the onChanged func,
but you would also have to implement a way to clear the Dependent fields manually.
in my code (willing to share, it's basically just an IClearable widget which you can imagine what it does) I added this functionality and also added another field to construct each field which is [dependentFields: ] , in which case those fields are cleared once the parent field changes it's value, and since some fields are chained the changes to other fields happens automatically.
LMK what you think
Beta Was this translation helpful? Give feedback.
All reactions