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(