LoginSignup
0
0

【Flutter】下線を2重にする方法

Last updated at Posted at 2024-05-28

こんにちは。
今回は、Text(テキスト)の下線を2重線にする方法を紹介します。

方法

スクリーンショット 2023-08-13 20.18.51.png

Textの下線を2重線にするには、TextStyleの引数「decorationStyle」を使います。
そして、TextStyleの引数「decorationStyle」に「TextDecoration.double」を指定します。

使用例

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(
        child: Text(
          '2 Line',
          style: TextStyle(
              decoration: TextDecoration.underline,
              decorationStyle: TextDecorationStyle.double,
              fontSize: 50),
        ),
      ),
    );
  }
}

実行例

スクリーンショット 2024-05-27 12.58.48.png

最後に

ここまで読んでいただき、ありがとうございました!
いいねしてくれたら、スキップして喜びます:heartpulse:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0