どうも、ちょげ(@chogetarou)です。
Containerを回転する方法を紹介します。
方法

Containerを回転するには、Transform.rotateを使います。
まず、Transform.rotateの引数「child」にContainerを指定します。
そして、引数「angle」に角度をラジアンで指定します。
Transform.rotate(
angle: /*ラジアンで角度を指定*/,
child: Container(),
),
以下は、使用例です。
使用例
Transform.rotate(
angle: 90 * pi / 180, //90度を「(π) ÷ 180」にかける
child: Container(
color: Colors.blue,
child: Text(
'Flutter',
style: TextStyle(
fontSize: 50,
color: Colors.white,
),
),
),
),

コメント