Ever since Flutter deprecated the FlatButton, I can no longer use splashColor and highlightColor properties to set the color of my buttons when the user presses down on them. Now I have to use one of the new buttons, such as TextButton below, but I have yet to find any buttonStyles that have a feature where the background color, for when the user presses down on the button, does not have the ripple effect.
TextButton(
style: ButtonStyle(
overlayColor: MaterialStateProperty.all(Colors.grey[100]),
),
),
A late reply, you can use splashFactory property on ButtonStyle.
TextButton(
style: TextButton.styleFrom(
splashFactory: NoSplash.splashFactory
),
),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With