You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stackoverfow Response
And on my own implementation, I kept the onChanged() function. And you don't have necessarily to keep it a final. Just make sure you instantiate outside the Textfield/TextformField implementation.
When I insert the number it erases the previous digit. And when a non-number character is inserted it erases all the inserted data.
I tried using it in a 'vanilla' TextFormField and had the same result.
The text was updated successfully, but these errors were encountered: