Hello community! I couldn't figure it out myself, so I decided to ask.
I have a PageView widget that have a component on it's page. Inside this component, there's a button that plays a sound via Play sound action. I want to stop that sound as soon as I swipe to the next PageView page.
I know I can just add a Stop sound action on the OnPageSwipe on the PageView, but the problem is that I can't choose the sound to stop because it's inside a component. It's like it is "invisible" to the page.
I already tried creating an boolean appstate and add as a conditional to trigger the stop sound action inside the component, everytime it turns true and set the appstate to true on page swipe, but it didn't worked.
How can I do that? Thanks in advance!