どうも、ちょげ(@chogetarou)です。
InkWellのリップルエフェクトを無効にする方法を紹介します。
方法

InkWellのリップルエフェクトを無効にするには、引数「splashColor」に「Colors.transparent」を指定します。
InkWell(
splashColor: Colors.transparent,
onTap: () {},
child: Container(
height: 50,
width: 250,
),
),
「splashColor」はリップルエフェクトの色を指定する引数です。
「Colors.transparent」は、透明色です。
つまり、リップルエフェクトの色を透明にすることで、無効にすることが出来ます。
コメント