|
|
|
@ -1073,6 +1073,7 @@ class TranslationView extends GetView<TranslationController> { |
|
|
|
Colors.blue, |
|
|
|
onTap: () async { |
|
|
|
Get.back(); |
|
|
|
await controller.stopAll(); |
|
|
|
await controller.changeTranslationMode('simultaneous'); |
|
|
|
await controller.startRecognition(); |
|
|
|
}, |
|
|
|
@ -1084,6 +1085,7 @@ class TranslationView extends GetView<TranslationController> { |
|
|
|
Colors.green, |
|
|
|
onTap: () async { |
|
|
|
Get.back(); |
|
|
|
await controller.stopAll(); |
|
|
|
await controller.changeTranslationMode('faceToFace'); |
|
|
|
await controller.startRecognition(); |
|
|
|
}, |
|
|
|
@ -1096,6 +1098,7 @@ class TranslationView extends GetView<TranslationController> { |
|
|
|
onTap: controller.bleManager.isConnected |
|
|
|
? () async { |
|
|
|
Get.back(); |
|
|
|
await controller.stopAll(); |
|
|
|
await controller.changeTranslationMode('audioVideo'); |
|
|
|
await controller.startRecognition(); |
|
|
|
} |
|
|
|
@ -1109,6 +1112,7 @@ class TranslationView extends GetView<TranslationController> { |
|
|
|
onTap: controller.bleManager.isConnected |
|
|
|
? () async { |
|
|
|
Get.back(); |
|
|
|
await controller.stopAll(); |
|
|
|
await controller.changeTranslationMode('call'); |
|
|
|
await controller.startRecognition(); |
|
|
|
} |
|
|
|
|