Describe the bug
We have upgraded to the latest Flutter Master, commit 4aed97681233a181ef8a135ed2809338473cbe11
A run through of the Admin-UI shows an issue with saving any values. Values (i.e. not flags) are delayed update in the UI because immediate update would make the text boxes lose state and prevent editing. I relied on the framework triggering editingComplete on the text boxes when they were removed from the rendering stack, which in hindsight was not the most reliable.
This changes tracks dirty state for each of the fields and their lock states, and keeps all of the fields managing their own state, calling back to the FeatureValueBloc to compare (and pass) their internal state against the original values. The only cross signal between cells is the locked state, which turns into its own stream of locked/unlock, which causes redraw of the cell as appropriate but the state is stored in each cell as a proper stateful component.
Which area does this issue belong to?
** testing plan:
- lock/unlock each type of value ensuring it locks and unlocks and saves - YES
- lock/unlock on non existent value - YES
- lock and ensure can’t change - YES
- unlock and ensure can change - YES
- change each value - YES
- reset each type - YES
- clear strings, numbers and config and they reset to not set - YES