How to disable splash highlight of FlatButton in Flutter?
I'd expect an invisible highlight color to do what you want:
new FlatButton({ ... splashColor: Colors.transparent, highlightColor: Colors.transparent, // makes highlight invisible too})
since flatbuton is depreciated and for the new textButton we have something like this.
TextButton( style: ButtonStyle( overlayColor: MaterialStateProperty.resolveWith<Color>( (Set<MaterialState> states) { if (states.contains(MaterialState.focused)) return Colors.red; if (states.contains(MaterialState.hovered)) return Colors.green; if (states.contains(MaterialState.pressed)) return Colors.blue; return null; // Defer to the widget's default.}),), onPressed: () { }, child: Text('TextButton with custom overlay colors'),)