In the documentation, RaisedButton has a property "enableFeedback", which controls "Whether detected gestures should provide acoustic and/or haptic feedback".
I'm trying to set enableFeedback: false
in my Androd app, but it appears that this property doesn't exist for RaisedButton. I'm getting the following error: Error: No named parameter with the name 'enableFeedback'.
Is the documentation wrong?
What I want to do is to prevent my app to play a sound when a raised button is tapped (which it's doing right now).
edit: Workaround here. Use MaterialButton instead of RaisedButton. MaterialButton has, indeed, a enableFeedback property. Not perfect, though, since RaisedButton has better default styling for my purposes (e.g. disabledColor).