Tags
Flutter
Asked 3 years ago
12 Oct 2021
Views 675
Alexis

Alexis posted

Flutter - underline Text widget

how to apply an underline to Text in flutter?

Text( "Underline Text")
Cimb

Cimb
answered Oct 12 '21 00:00

its very easy to give underline to text.


Text("Hello World",
                          style: TextStyle(decoration:   TextDecoration.underline ))

i applied the style atribute with TextStyle -> decoration : TextDecoration.underlinewhich give underline to Text .
Post Answer