Help you easier to add sounds and background music to your games or apps.
Default path of the asset files:
flutter: assets: # Backgound music path - assets/audio/music/name1.mp3 - assets/audio/music/name2.mp3 # Sound path - assets/audio/sound/sound.mp3
Initialize the plugin:
await AudioHelper.initial( backgroundMusicNames: ['name1.mp3','name2.mp3'], );
Play & stop background music:
/// Play AudioHelper.playMusic(); /// Stop AudioHelper.stopMusic();
Notice: I've only tested this plugin on my real project, so it doesn't have any examples or tests yet.