diff --git a/lib/pages/reading/bloc/reading_bloc.dart b/lib/pages/reading/bloc/reading_bloc.dart index 85cf809..754f827 100644 --- a/lib/pages/reading/bloc/reading_bloc.dart +++ b/lib/pages/reading/bloc/reading_bloc.dart @@ -130,6 +130,7 @@ class ReadingPageBloc "setMethodCallHandler method=${call.method} arguments=${call.arguments}"); if (call.method == 'voiceResult') { //评测结果 + await audioPlayer.setBalance(0.0); add(XSVoiceResultEvent(call.arguments)); return; } @@ -150,6 +151,7 @@ class ReadingPageBloc print(call.method == 'voiceEnd' ? '评测结束' : '评测取消'); } _isRecording = false; + await audioPlayer.setBalance(0.0); add(OnXSVoiceStateChangeEvent()); return; } @@ -157,6 +159,7 @@ class ReadingPageBloc if (call.method == 'voiceFail') { //评测失败 _isRecording = false; + await audioPlayer.setBalance(0.0); EasyLoading.showToast('评测失败'); return; }