Browse Source

修改打电话

newdev_shunjiawei
tanlongsheng 1 year ago
parent
commit
cd533e700f
  1. 2
      lib/data/services/novice_guide_service.dart
  2. 26
      lib/modules/agent/views/agent_view.dart

2
lib/data/services/novice_guide_service.dart

@ -25,7 +25,7 @@ class NoviceGuideService extends GetxService {
void startAIGuide() async { void startAIGuide() async {
if (!isAIGuide) { if (!isAIGuide) {
await Future.delayed(const Duration(milliseconds: 100)); await Future.delayed(const Duration(milliseconds: 200));
isAIGuide = true; isAIGuide = true;
_storage.write('ai_guide', true); _storage.write('ai_guide', true);
Intro.of(Get.context!).start(group: 'ai'); Intro.of(Get.context!).start(group: 'ai');

26
lib/modules/agent/views/agent_view.dart

@ -934,21 +934,19 @@ class _AgentViewState extends State<AgentView> with WidgetsBindingObserver {
Widget _buildPhoneCallOverlay(BuildContext context, bool isDarkMode) { Widget _buildPhoneCallOverlay(BuildContext context, bool isDarkMode) {
return Container( return Container(
color: Colors.transparent, // 设置整个覆盖层为透明 color: Colors.transparent, // 设置整个覆盖层为透明
child: SafeArea( child: Column(
child: Column( children: [
children: [ // 中间空白区域 - 完全透明
// 中间空白区域 - 完全透明 const Expanded(
const Expanded( child: SizedBox(), // 空的占位符,完全透明
child: SizedBox(), // 空的占位符,完全透明 ),
),
// 底部控制按钮 - 包含音频波纹 // 底部控制按钮 - 包含音频波纹
Container( Container(
color: isDarkMode ? Colors.black : Colors.white, color: isDarkMode ? Colors.black : Colors.white,
child: _buildPhoneCallControls(isDarkMode), child: _buildPhoneCallControls(isDarkMode),
), ),
], ],
),
), ),
); );
} }

Loading…
Cancel
Save