どうも、ちょげ(@chogetarou)です。
Textのテキストに下線をつける方法を紹介します。
方法

Textのテキストに下線をつけるには、引数「style」を使います。
まず、Textの引数「style」にTextStyleを指定します。
そして、TextStyleの引数「decoration」に「TextDecoration.underline」を指定します。
Text(
'Hello Flutter',
style: TextStyle(
decoration: TextDecoration.underline,
),
),

引数「style」を使えば、Textで表示するテキストに下線をつけることが出来ます。
コメント