From 5143145eafb0209b7dcce68236f20a9717d1dd5a Mon Sep 17 00:00:00 2001 From: fdp <1286779656@qq.com> Date: Mon, 19 May 2025 19:53:02 +0800 Subject: [PATCH] add --- .../translation/controllers/translation_controller.dart | 3 ++- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/modules/translation/controllers/translation_controller.dart b/lib/modules/translation/controllers/translation_controller.dart index bbf4c5210..0196b44ff 100644 --- a/lib/modules/translation/controllers/translation_controller.dart +++ b/lib/modules/translation/controllers/translation_controller.dart @@ -51,6 +51,7 @@ class TranslationController extends GetxController { currentMode.value = mode; currentModeTitle.value = _getModeTitle(mode); // 这里添加具体模式切换逻辑 + stopAll(); } String _getModeTitle(String mode) { @@ -764,4 +765,4 @@ class TranslationItem { return languageManager.getChineseNameByAsrCode(targetLanguageCode) ?? '未知语言'; } -} \ No newline at end of file +} diff --git a/pubspec.yaml b/pubspec.yaml index 4cc804bcb..7a8bbb5c2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -25,7 +25,7 @@ dependencies: web_socket_channel: ^3.0.2 flutter_dotenv: ^5.1.0 synchronized: ^3.1.0 - intl: ^0.20.2 + intl: ^0.19.0 crypto: ^3.0.3 flutter_tts: ^4.2.2 logger: ^2.0.2+1