修改主题
theme: ThemeData(
splashColor: Colors.transparent,
highlightColor: Colors.transparent,
splashFactory: NoSplash.splashFactory,
),
或者修改单个
ElevatedButton(
onPressed: () {},
style: ElevatedButton.styleFrom(
splashFactory: NoSplash.splashFactory,
),
child: Text("Button"),
),
标签:水波纹,ElevatedButton,效果,transparent,NoSplash,splashFactory,flutter
From: https://www.cnblogs.com/lemos/p/16705979.html