|
|
|
@ -10,7 +10,7 @@ class TranslationModeSelector { |
|
|
|
/// 显示翻译模式选择器 |
|
|
|
static void show(bool isDarkMode) { |
|
|
|
final controller = Get.find<TranslationController>(); |
|
|
|
|
|
|
|
|
|
|
|
Get.bottomSheet( |
|
|
|
BackdropFilter( |
|
|
|
filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0), |
|
|
|
@ -22,7 +22,8 @@ class TranslationModeSelector { |
|
|
|
} |
|
|
|
|
|
|
|
// 构建翻译模式选择器 - 参考会议模块样式 |
|
|
|
static Widget _buildTranslationModeSelector(TranslationController controller) { |
|
|
|
static Widget _buildTranslationModeSelector( |
|
|
|
TranslationController controller) { |
|
|
|
return Builder( |
|
|
|
builder: (BuildContext context) { |
|
|
|
return SafeArea( |
|
|
|
@ -39,7 +40,7 @@ class TranslationModeSelector { |
|
|
|
Get.back(); |
|
|
|
await controller.stopAll(); |
|
|
|
await controller.changeTranslationMode('simultaneous'); |
|
|
|
await controller.startRecognition(); |
|
|
|
//await controller.startRecognition(); |
|
|
|
}, |
|
|
|
), |
|
|
|
_buildModeItem( |
|
|
|
@ -52,7 +53,7 @@ class TranslationModeSelector { |
|
|
|
Get.back(); |
|
|
|
await controller.stopAll(); |
|
|
|
await controller.changeTranslationMode('faceToFace'); |
|
|
|
await controller.startRecognition(); |
|
|
|
//await controller.startRecognition(); |
|
|
|
}, |
|
|
|
), |
|
|
|
_buildModeItem( |
|
|
|
@ -66,7 +67,7 @@ class TranslationModeSelector { |
|
|
|
Get.back(); |
|
|
|
await controller.stopAll(); |
|
|
|
await controller.changeTranslationMode('audioVideo'); |
|
|
|
await controller.startRecognition(); |
|
|
|
//await controller.startRecognition(); |
|
|
|
} |
|
|
|
: null, |
|
|
|
), |
|
|
|
@ -81,7 +82,7 @@ class TranslationModeSelector { |
|
|
|
Get.back(); |
|
|
|
await controller.stopAll(); |
|
|
|
await controller.changeTranslationMode('call'); |
|
|
|
await controller.startRecognition(); |
|
|
|
//await controller.startRecognition(); |
|
|
|
} |
|
|
|
: null, |
|
|
|
), |
|
|
|
|