どうも、ちょげ(@chogetarou)です。
Containerの背景色を透明にする方法を紹介します。
方法

Containerの背景色を透明にするには、引数「color」もしくは「BoxDecoration」の引数「color」に「Colors.transparent」を指定します。
color property
Container(
color: Colors.transparent,
),
BoxDecoration
Container(
decoration: BoxDecoration(
color: Colors.transparent
),
),
Colors.transparentは透明色で、これを背景色に指定することで、背景を透明にすることが出来ます。
コメント