我正在尝试禁用 TextField
上的链式 react 。
splashColor: Colors.transparent
也消除了对其他小部件的涟漪效应。
我只想去除 TextField
上的链式 react 。
最佳答案
试试这个方法,你只需要添加Theme
到你的TextField
Theme(
data: Theme.of(context).copyWith(splashColor: Colors.transparent),
child: TextField(),
),
关于dart - 如何在 flutter 中只为 TextField 禁用 splashColor?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55595947/