From 444979dfd1ceb7b73cccc3ad722e1fd3885c6ceb Mon Sep 17 00:00:00 2001 From: Jolie <412895109@qq.com> Date: Wed, 24 Dec 2025 22:23:38 +0800 Subject: [PATCH] =?UTF-8?q?feat(video=5Fcall):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E9=80=9A=E8=AF=9D=E6=9C=80=E5=B0=8F=E5=8C=96?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在视频通话页面左上角添加最小化按钮 - 实现 _buildMinimizeButton() 方法构建按钮组件 - 添加 _minimizeCall() 方法处理最小化逻辑 - 按钮点击后返回上一页实现最小化效果 - 按钮使用 Assets.imagesCloseArrow 图片资源 - 按钮位置设置为 top: 26.w, left: 26.w --- lib/pages/message/video_call_page.dart | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/lib/pages/message/video_call_page.dart b/lib/pages/message/video_call_page.dart index 861a2e5..3fbf119 100644 --- a/lib/pages/message/video_call_page.dart +++ b/lib/pages/message/video_call_page.dart @@ -244,6 +244,9 @@ class _VideoCallPageState extends State { // 背景视频/头像(模糊) _buildBackground(), + // 最小化按钮(左上角) + _buildMinimizeButton(), + // 用户信息 _buildUserInfo(), @@ -257,6 +260,25 @@ class _VideoCallPageState extends State { ); } + /// 构建最小化按钮 + Widget _buildMinimizeButton() { + return Positioned( + top: 26.w, + left: 26.w, + child: GestureDetector( + onTap: _minimizeCall, + child: Image.asset(Assets.imagesCloseArrow, width: 20.w, height: 20.w), + ), + ); + } + + /// 最小化通话 + void _minimizeCall() { + // TODO: 实现最小化逻辑 + // 可以返回上一页,或者显示一个小窗口 + Get.back(); + } + /// 构建背景 Widget _buildBackground() { return SizedBox(