Search code examples
flutterflutter-layoutflutter-web

TextFormField - How to change cursor color


I'm would like to change the cursor color in a TextFormField.

I don't find the Property.

To know I'm on a Flutter web app and not mobile.


Solution

  • From this answer:

    You can change specific textfield cursor color for your solution:

    TextField(cursorColor: Colors.white)

    but if you want to change it completely in your project then you can check this here