写了一个在 Windows 平台上的应用
想在这个事件里面添加一个点击的提示音,
onTap: () {
//点击时播放背景音乐
animationController.forward();
addOverLay(context);
},
用的库都是兼容 win 平台的,试了好多都不行,
新版 audioplayers 没声音+报错
旧版 audioplayers 没声音
试了好多遍,点击了就是没有声音
onTap: () {
AudioPlayer _player;
_player = new AudioPlayer();
_player.play('assets/music/my.mp3');
//点击时后台播放提示音
addOverLay(context);
},
能搜到的教程都是特别旧的,问了 gpt4.0 代码没问题就是没声音
我裂开了
想在这个事件里面添加一个点击的提示音,
onTap: () {
//点击时播放背景音乐
animationController.forward();
addOverLay(context);
},
用的库都是兼容 win 平台的,试了好多都不行,
新版 audioplayers 没声音+报错
旧版 audioplayers 没声音
试了好多遍,点击了就是没有声音
onTap: () {
AudioPlayer _player;
_player = new AudioPlayer();
_player.play('assets/music/my.mp3');
//点击时后台播放提示音
addOverLay(context);
},
能搜到的教程都是特别旧的,问了 gpt4.0 代码没问题就是没声音
我裂开了