How to get cursor in text field to stop moving to the beginning in flutter?

Posted by Pinki | Updated on

Want to get cursor in text field to stop moving to the beginning in flutter? I think if you just remove the onChange from your code you’ll get just what you need!

One thing that is important and may cause problems as well is that your controller must be set JUST ONCE! You can put it in the constructor of the state of your Widget or in the initState(). It’ll be something like it:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers