From 3b942eeeaf53d9618e4c2d7d5b4738b7742b0c46 Mon Sep 17 00:00:00 2001 From: dom Date: Tue, 9 Jun 2026 14:06:40 +0800 Subject: [PATCH] opt ui Signed-off-by: dom --- lib/pages/live_room/widgets/header_control.dart | 4 ++-- lib/plugin/pl_player/view/simple_video_texture.dart | 10 +--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/lib/pages/live_room/widgets/header_control.dart b/lib/pages/live_room/widgets/header_control.dart index 01e820576..06fcd8855 100644 --- a/lib/pages/live_room/widgets/header_control.dart +++ b/lib/pages/live_room/widgets/header_control.dart @@ -250,7 +250,7 @@ class _LiveHeaderControlState extends State child: const Row( spacing: 8, children: [ - Icon(Icons.info_outline, size: 16), + Icon(Icons.info_outline, size: 17), Text('播放信息', style: TextStyle(fontSize: 14)), ], ), @@ -264,7 +264,7 @@ class _LiveHeaderControlState extends State child: Row( spacing: 8, children: [ - const Icon(Icons.volume_up, size: 16), + const Icon(Icons.volume_up, size: 17), Text( '播放器音量: ${player.getProperty('volume').subLength(3)}%', style: const TextStyle(fontSize: 14), diff --git a/lib/plugin/pl_player/view/simple_video_texture.dart b/lib/plugin/pl_player/view/simple_video_texture.dart index a332086a8..09d99f570 100644 --- a/lib/plugin/pl_player/view/simple_video_texture.dart +++ b/lib/plugin/pl_player/view/simple_video_texture.dart @@ -71,15 +71,7 @@ class SimpleVideoTextureState extends State { ? rect.width / _devicePixelRatio : rect.height / _devicePixelRatio * widget.aspectRatio!, height: rect.height / _devicePixelRatio, - child: Stack( - children: [ - if (rect.width <= 1.0 && - rect.height <= 1.0 && - widget.fill != Colors.transparent) - Positioned.fill(child: ColoredBox(color: widget.fill)), - Texture(textureId: id, filterQuality: widget.filterQuality), - ], - ), + child: Texture(textureId: id, filterQuality: widget.filterQuality), ); } return const SizedBox();