【发布时间】:2021-06-21 15:57:52
【问题描述】:
【问题讨论】:
标签: drawer
【问题讨论】:
标签: drawer
-
----------
Text('hello',
style: textStyle.copyWith(
decoration: TextDecoration.underline,
color: Colors.black)),
if we need underline only below the text we can provide text style decoration as
decoration : TextDecoration.underline;
If we need this text view as button then just wrap this text widget with -InkWell or -TextButton or -GestureDetector.
InkWell(
onTap: () {
print('undelined text button');
},
child: Text('hello',
style: headingStyle.copyWith(
decoration: TextDecoration.underline,
color: Colors.black))),
【讨论】: