|
|
|
@ -26,7 +26,7 @@ class MeetingView extends GetView<MeetingController> { |
|
|
|
Column( |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
children: [ |
|
|
|
_buildConnect(isDarkMode), |
|
|
|
// _buildConnect(isDarkMode), |
|
|
|
Expanded( |
|
|
|
child: _buildBody(context, isDarkMode), |
|
|
|
), |
|
|
|
@ -35,7 +35,7 @@ class MeetingView extends GetView<MeetingController> { |
|
|
|
_buildMicButton(context, isDarkMode), |
|
|
|
], |
|
|
|
), |
|
|
|
floatingActionButton: _buildFloatingButtons(), |
|
|
|
// floatingActionButton: _buildFloatingButtons(), |
|
|
|
), |
|
|
|
); |
|
|
|
} |
|
|
|
@ -176,8 +176,7 @@ class MeetingView extends GetView<MeetingController> { |
|
|
|
_importAudioItem( |
|
|
|
context, |
|
|
|
isDarkMode, |
|
|
|
icon: Image.asset('assets/images/explore.png', |
|
|
|
width: 32.w, height: 32.w), |
|
|
|
icon: Icon(Icons.mic, size: 25.w), |
|
|
|
title: '现场录音', |
|
|
|
enabled: true, // 始终可用 |
|
|
|
onTap: () async { |
|
|
|
@ -192,8 +191,7 @@ class MeetingView extends GetView<MeetingController> { |
|
|
|
// 音、视频录音 - 根据控制器状态禁用 |
|
|
|
_importAudioItem( |
|
|
|
context, isDarkMode, |
|
|
|
icon: Image.asset('assets/images/explore.png', |
|
|
|
width: 32.w, height: 32.w), |
|
|
|
icon: Icon(Icons.videocam, size: 25.w), |
|
|
|
title: '音、视频录音', |
|
|
|
enabled: controller.bleManager.isConnected, // 依赖控制器状态 |
|
|
|
onTap: controller.bleManager.isConnected |
|
|
|
@ -212,9 +210,7 @@ class MeetingView extends GetView<MeetingController> { |
|
|
|
// 通话录音 - 根据控制器状态禁用 |
|
|
|
_importAudioItem( |
|
|
|
context, isDarkMode, |
|
|
|
icon: Row( |
|
|
|
// ... 图标组合保持不变 |
|
|
|
), |
|
|
|
icon: Icon(Icons.phone, size: 25.w), |
|
|
|
title: '通话录音', |
|
|
|
enabled: controller.bleManager.isConnected, // 依赖控制器状态 |
|
|
|
onTap: controller.bleManager.isConnected |
|
|
|
@ -229,6 +225,18 @@ class MeetingView extends GetView<MeetingController> { |
|
|
|
} |
|
|
|
: null, // 禁用时置空onTap |
|
|
|
), |
|
|
|
SizedBox(height: 8.w), |
|
|
|
_importAudioItem( |
|
|
|
context, |
|
|
|
isDarkMode, |
|
|
|
icon: Icon(Icons.library_music, size: 25.w), |
|
|
|
title: '导入本地音频', |
|
|
|
enabled: true, |
|
|
|
onTap: () { |
|
|
|
Get.back(); |
|
|
|
controller.addAudio(); |
|
|
|
}, |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
@ -442,15 +450,15 @@ class MeetingView extends GetView<MeetingController> { |
|
|
|
), |
|
|
|
), |
|
|
|
centerTitle: true, |
|
|
|
actions: [ |
|
|
|
IconButton( |
|
|
|
icon: Icon(Icons.folder_open, |
|
|
|
color: isDarkMode ? Colors.white : Colors.black), |
|
|
|
onPressed: () { |
|
|
|
_showRightDrawerDialog(context, isDarkMode); |
|
|
|
}, |
|
|
|
), |
|
|
|
], |
|
|
|
// actions: [ |
|
|
|
// IconButton( |
|
|
|
// icon: Icon(Icons.folder_open, |
|
|
|
// color: isDarkMode ? Colors.white : Colors.black), |
|
|
|
// onPressed: () { |
|
|
|
// _showRightDrawerDialog(context, isDarkMode); |
|
|
|
// }, |
|
|
|
// ), |
|
|
|
// ], |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
|