I\'m working on an application using Flutter SDK. When I use a TextField widget, and I focus it, the underline becomes blue. I need to change this color to red, how can I do
I haven't tried it yet, but I had a look at the docs for you.
Looking at the TextField class you can set an InputDecoration, which in turn has an InputBorder. Setting that to an UnderlineInputBorder with your own BorderSide should do the trick I guess. You can set the color of the BorderSide.
You can also set an InputBorder in the global InputDecorationTheme if you want all textfields to have the same style.