After reading flutter documentation I got information about how to underline text. But My problem is, I needed a simple text style with bolder underline.
After reading flutter documentation I got information about how to underline text. But My problem is, I needed a simple text style with bolder underline.
Try adding the property called decorationThickness in TextStyle.
Text(
'Flutter Developer',
style: TextStyle(
decoration: TextDecoration.underline,
decorationThickness: 4,
),
);
Apply decorationThickness in a Text Style
The default decorationThickness is 1.0, which will use the font's base stroke thickness/width.
Text( 'This has a very BOLD strike through!', style: TextStyle( decoration: TextDecoration.lineThrough, decorationThickness: 2.85, ), )