Browse Source

去处没有的功能

newdev_shunjiawei
fdp 1 year ago
parent
commit
1d1b8fddcd
  1. 64
      lib/modules/meeting/views/bottomSheet/navigation_bar_bottom_sheet.dart
  2. 26
      lib/modules/translation/views/translation_view.dart

64
lib/modules/meeting/views/bottomSheet/navigation_bar_bottom_sheet.dart

@ -35,38 +35,38 @@ class NavigationBarBottomSheet extends GetView<MeetingHomeController> {
controller.addMeetingAudio();
},
),
if (controller.meetingController.type == 1)
_buildItem(
context, // 传递 context 参数
'audioVideoRecording'.tr, // 对应中文:音、视频录音
Icons.videocam,
Colors.green,
onTap: controller.bleManager.isConnected
? () async {
Get.back();
await Get.toNamed(Routes.meetingRecord, arguments: {
'audioTypes': 1,
});
controller.addMeetingAudio();
}
: null,
),
if (controller.meetingController.type == 1)
_buildItem(
context, // 传递 context 参数
'callRecording'.tr, // 对应中文:通话录音
Icons.phone,
Colors.orange,
onTap: controller.bleManager.isConnected
? () async {
Get.back();
await Get.toNamed(Routes.meetingRecord, arguments: {
'audioTypes': 2,
});
controller.addMeetingAudio();
}
: null,
),
// if (controller.meetingController.type == 1)
// _buildItem(
// context, // 传递 context 参数
// 'audioVideoRecording'.tr, // 对应中文:音、视频录音
// Icons.videocam,
// Colors.green,
// onTap: controller.bleManager.isConnected
// ? () async {
// Get.back();
// await Get.toNamed(Routes.meetingRecord, arguments: {
// 'audioTypes': 1,
// });
// controller.addMeetingAudio();
// }
// : null,
// ),
// if (controller.meetingController.type == 1)
// _buildItem(
// context, // 传递 context 参数
// 'callRecording'.tr, // 对应中文:通话录音
// Icons.phone,
// Colors.orange,
// onTap: controller.bleManager.isConnected
// ? () async {
// Get.back();
// await Get.toNamed(Routes.meetingRecord, arguments: {
// 'audioTypes': 2,
// });
// controller.addMeetingAudio();
// }
// : null,
// ),
_buildItem(
context, // 传递 context 参数
'importAudio'.tr, // 对应中文:导入音频

26
lib/modules/translation/views/translation_view.dart

@ -1115,19 +1115,19 @@ class TranslationView extends GetView<TranslationController> {
}
: null,
),
_buildModeItem(
context,
'audioVideoTranslation'.tr,
Icons.videocam,
Colors.orange,
onTap: controller.bleManager.isConnected
? () async {
Get.back();
await controller.changeTranslationMode('audioVideo');
await controller.startRecognition();
}
: null,
),
// _buildModeItem(
// context,
// 'audioVideoTranslation'.tr,
// Icons.videocam,
// Colors.orange,
// onTap: controller.bleManager.isConnected
// ? () async {
// Get.back();
// await controller.changeTranslationMode('audioVideo');
// await controller.startRecognition();
// }
// : null,
// ),
_buildModeItem(
context,
'callTranslation'.tr,

Loading…
Cancel
Save