From 67a4628d916222706ea99e0362667f133ae3c876 Mon Sep 17 00:00:00 2001 From: Jolie <412895109@qq.com> Date: Sat, 27 Dec 2025 16:47:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=E4=BF=AE=E5=A4=8D=E7=A4=BC?= =?UTF-8?q?=E7=89=A9=E5=BC=B9=E7=AA=97=E6=98=BE=E7=A4=BA=E6=97=B6=E9=94=AE?= =?UTF-8?q?=E7=9B=98=E6=9C=AA=E9=9A=90=E8=97=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 FocusScope.of(context).unfocus() 隐藏键盘 - 确保礼物弹窗显示前键盘已收起 --- lib/pages/message/chat_page.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pages/message/chat_page.dart b/lib/pages/message/chat_page.dart index 06f0d64..5603578 100644 --- a/lib/pages/message/chat_page.dart +++ b/lib/pages/message/chat_page.dart @@ -103,6 +103,8 @@ class _ChatPageState extends State { // 显示礼物弹窗 void _showGiftPopup() { + // 隐藏键盘 + FocusScope.of(context).unfocus(); final giftProducts = _controller.giftProducts.toList(); if (giftProducts.isEmpty) { SmartDialog.showToast('礼物列表加载中,请稍候...');