From 6b15d61b2e541dbc8a6f305aefeb4fae1e6c4cf0 Mon Sep 17 00:00:00 2001 From: lxm <1274844347@qq.com> Date: Thu, 11 Sep 2025 20:24:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E6=96=B0=E6=89=8B?= =?UTF-8?q?=E5=BC=95=E5=AF=BC=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在home_view和agent_view中添加onTap事件处理,确保点击时执行onNext回调并启动唤醒监听 --- lib/modules/agent/views/agent_view.dart | 8 ++++++++ lib/modules/home/views/home_view.dart | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/lib/modules/agent/views/agent_view.dart b/lib/modules/agent/views/agent_view.dart index b3a5846b1..76edfeca9 100644 --- a/lib/modules/agent/views/agent_view.dart +++ b/lib/modules/agent/views/agent_view.dart @@ -521,6 +521,14 @@ class _AgentViewState extends State with WidgetsBindingObserver { controller.noviceGuideService .aiStep]['input']; }, + onTap: () { + controller.textController.text = + controller.noviceGuideService + .aiStepsList[ + controller.noviceGuideService + .aiStep]['input']; + params.onNext!(); + }, ); }, onWidgetLoad: () { diff --git a/lib/modules/home/views/home_view.dart b/lib/modules/home/views/home_view.dart index 440db691a..34156f114 100644 --- a/lib/modules/home/views/home_view.dart +++ b/lib/modules/home/views/home_view.dart @@ -105,6 +105,10 @@ class HomeView extends GetView { onNext: () { controller.noviceGuideService.startWakeupListen(); }, + onTap: () { + params.onNext!(); + controller.noviceGuideService.startWakeupListen(); + }, ); }, builder: (BuildContext context, GlobalKey key) => SizedBox(