I'm working on a music app and in my project I have a custom widget that creates an audio player with controls (basically timeline + play/pause + next/previous buttons). It works perfectly and if I give it an audio path it plays it just like needed (the package I use is just_audio).
However, I would like to control this widget outside of the code. For example, on my page I have a list that generates different audio tabs (basically just containers). I want to be able to press on an audio tab and make the audio player play the song from it.
I understand how to pass the audioPath parameter to set the path of the audio for the player, but how do I actually make it play the song?
I'm quite new to flutterflow so I would really appreciate if anyone can help me with this problem ๐
Trigger a custom widget outside the code
1
1 reply