//设置button的 style
TextButton(
style: ButtonStyle(overlayColor: MaterialStateProperty.resolveWith((states) {return Colors.transparent;})),
child: CustomText('商品详情页',)),
//设置button的 style
TextButton(
style: ButtonStyle(overlayColor: MaterialStateProperty.resolveWith((states) {return Colors.transparent;})),
child: CustomText('商品详情页',)),
本文标题:flutter TextButton 去除水波纹效果
本文链接:https://www.haomeiwen.com/subject/pwoehrtx.html
网友评论