Im making an app that play sounds when you press FlatButtons, and I want to disable the predetermined pop sound that plays every time you touch the screen.
you cant disable the sound for the flatbutton .you can use InkWell() Widget it offers you the methode enableFeedback . you can set it as false and you should be alright
3
votes
Use MaterialButton. All the styling remains the same but you have the added benefit of implementing
enableFeedback: false,
0
votes
One of the idea is to use InkWell() widget instead.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more