I'm trying to disable all sounds when clicking on any of the possible buttons (ElevatedButton, TextButton, IconButton etc.). But no matter how much I try, I can't do it by using the app theme or any other way.
I've already tried setting enableFeedback = false
for all button types, but it absolutely doesn't work for IconButton.
So, I can't do it for whole app and the only solution is to set enableFeedback = false
for each button, but isn't there any easier way to do this?
Well, after a little research, I discovered that you can set the value
enableFeedback = false/true
in the theme for any buttons that inheritButtonStyleButton
, but you cannot set this value forIconButton
, since it inheritsStatelessWidget
and does not request data from the application theme.In case if you need to set
enableFeedback
value for yourIconButton
widgets, you need to do it separately for eachIconButton
(doesn't matter whether you do this using other widgets or whether you actually set each value manually).I think the issue can be closed, but it really looks like bug.