我试图在TextField上禁用涟漪效应。
TextField
splashColor: Colors.transparent也消除了对其他小部件的连锁反应。
splashColor: Colors.transparent
我想仅在TextField上消除涟漪效应。
试试这种方式,你只需要将Theme添加到你的TextField
Theme
Theme( data: Theme.of(context).copyWith(splashColor: Colors.transparent), child: TextField(), ),