I want a sound to play with each page change in PageView. I have imported the services.dart package. There is an onPageChanged property in PageView but I can't figure out how to use it to make this happen. Or do I use GestureDetector? Or something else?
Solution 1: 0xCCY
As far as I know, Flutter does not support audio playing as of now (Feb 2019).
Use plugins like this pub.dartlang:audioplayers to play audio.
It can be done by simply calling the function on an action that change the page or simply putting a trigger within the state.