Browse Source

feat(video_call): 添加视频通话最小化按钮功能

- 在视频通话页面左上角添加最小化按钮
- 实现 _buildMinimizeButton() 方法构建按钮组件
- 添加 _minimizeCall() 方法处理最小化逻辑
- 按钮点击后返回上一页实现最小化效果
- 按钮使用 Assets.imagesCloseArrow 图片资源
- 按钮位置设置为 top: 26.w, left: 26.w
master
Jolie 3 months ago
parent
commit
444979dfd1
1 changed files with 22 additions and 0 deletions
  1. 22
      lib/pages/message/video_call_page.dart

22
lib/pages/message/video_call_page.dart

@ -244,6 +244,9 @@ class _VideoCallPageState extends State<VideoCallPage> {
// /
_buildBackground(),
//
_buildMinimizeButton(),
//
_buildUserInfo(),
@ -257,6 +260,25 @@ class _VideoCallPageState extends State<VideoCallPage> {
);
}
///
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(

Loading…
Cancel
Save