Browse Source

去处没有的功能

weicu
fdp 1 year ago
parent
commit
ad485b8f6a
  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(); controller.addMeetingAudio();
}, },
), ),
if (controller.meetingController.type == 1) // if (controller.meetingController.type == 1)
_buildItem( // _buildItem(
context, // 传递 context 参数 // context, // 传递 context 参数
'audioVideoRecording'.tr, // 对应中文:音、视频录音 // 'audioVideoRecording'.tr, // 对应中文:音、视频录音
Icons.videocam, // Icons.videocam,
Colors.green, // Colors.green,
onTap: controller.bleManager.isConnected // onTap: controller.bleManager.isConnected
? () async { // ? () async {
Get.back(); // Get.back();
await Get.toNamed(Routes.meetingRecord, arguments: { // await Get.toNamed(Routes.meetingRecord, arguments: {
'audioTypes': 1, // 'audioTypes': 1,
}); // });
controller.addMeetingAudio(); // controller.addMeetingAudio();
} // }
: null, // : null,
), // ),
if (controller.meetingController.type == 1) // if (controller.meetingController.type == 1)
_buildItem( // _buildItem(
context, // 传递 context 参数 // context, // 传递 context 参数
'callRecording'.tr, // 对应中文:通话录音 // 'callRecording'.tr, // 对应中文:通话录音
Icons.phone, // Icons.phone,
Colors.orange, // Colors.orange,
onTap: controller.bleManager.isConnected // onTap: controller.bleManager.isConnected
? () async { // ? () async {
Get.back(); // Get.back();
await Get.toNamed(Routes.meetingRecord, arguments: { // await Get.toNamed(Routes.meetingRecord, arguments: {
'audioTypes': 2, // 'audioTypes': 2,
}); // });
controller.addMeetingAudio(); // controller.addMeetingAudio();
} // }
: null, // : null,
), // ),
_buildItem( _buildItem(
context, // 传递 context 参数 context, // 传递 context 参数
'importAudio'.tr, // 对应中文:导入音频 'importAudio'.tr, // 对应中文:导入音频

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

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

Loading…
Cancel
Save