Programmatically changing a fields value without triggering onChanged callback #1137
Replies: 1 comment 1 reply
-
HI @FXschwartz Maybe |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to programmatically change a field's value as you can via -
.currentState?.patchValue([})
and it not trigger the fields onChanged callback?In my fields onChanged callback I set the value to another provider I use. I have to parse the value into different units of measurements.
And when a user changes the units of measurement from inches to feet, for example, I convert them and then update that measurement field using the
.pathValue
method. The problem is that then triggers the onChanged callback, and it ends up messing with my unit's conversions.Using the standard Flutter TextField and TextEditingController doesn't behave this way. Is there a way for me to do that with this library?
Beta Was this translation helpful? Give feedback.
All reactions