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

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

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