I want to write an soundboard, basically a list of buttons and the job of each button is to play a sound that I have on my PC when they are pressed.
I've already done the design with a list view and some material buttons, but I don't know how to make them play sounds when I press them.
Add
audioplayersas a dependency and your audio file topubspec.yamlfile like this:Full code (Null-safe):