flutter InkWell组件去掉点击的水波纹效果
2023-07-01 本文已影响0人
__Mr_Xie__
InkWell
组件去掉点击的水波纹效果:
将highlightColor
和splashColor
属性设置为透明色即可,代码如下:
InkWell(
highlightColor: Colors.transparent,
splashColor: Colors.transparent,
)
InkWell
组件去掉点击的水波纹效果:
将highlightColor
和splashColor
属性设置为透明色即可,代码如下:
InkWell(
highlightColor: Colors.transparent,
splashColor: Colors.transparent,
)