美文网首页flutter
flutter InkWell组件去掉点击的水波纹效果

flutter InkWell组件去掉点击的水波纹效果

作者: __Mr_Xie__ | 来源:发表于2023-07-01 21:05 被阅读0次

    InkWell组件去掉点击的水波纹效果:
    highlightColorsplashColor属性设置为透明色即可,代码如下:

    InkWell(
          highlightColor: Colors.transparent,
          splashColor: Colors.transparent,
    )
    

    相关文章

      网友评论

        本文标题:flutter InkWell组件去掉点击的水波纹效果

        本文链接:https://www.haomeiwen.com/subject/ngcxudtx.html