Flutter – Why is the cursor in a TextField jumping to the beginning of the text whenever the onChanged event is triggered?
My app has (among other things) a TextField and ElevatedButton. I'm managing state with Provider. I want the button color to change from white to blue when the TextField's content changes. I have this code in the TextField: onChanged: (_)…