Loop sound on Toggleicon tap

I am trying to make an app where the user can tap a Toggleicon

, and play a sample. When the user taps the Toggleicon again, the sample stops. No problem there, but I would like the sample to loop until the user then taps the Toggleicon the second time. Anyone who can help?

Sorry if I am doing anything wrong. This is my first app using FlutterFlow.

7
1 reply