Change color cursor in Flutter TextField

By July 28, 2020 November 9th, 2020 No Comments

Finally, you have finished your amazingĀ  Flutter App with your amazing UI. But then you start testing and when taping inside a TextField, a horrible blue cursor appears. It is easy to change that color!

In your ThemeData define these two properties:

    cursorColor: Colors.amber,
    textSelectionHandleColor: Colors.amber,

And then you will have your perfect UI!






That is it! Happy Fluttering!


Author Ernie

More posts by Ernie

Leave a Reply