Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-09 15:13:52 +08:00
parent 23db485183
commit dbb865d723
5 changed files with 9 additions and 6 deletions

View File

@@ -105,8 +105,8 @@ class _LiveRoomPageState extends State<LiveRoomPage>
maxWidth = size.width;
maxHeight = size.height;
isWindowMode = MaxScreenSize.isWindowMode(
width: maxWidth,
height: maxHeight,
width: maxWidth * plPlayerController.uiScale,
height: maxHeight * plPlayerController.uiScale,
);
isPortrait = size.isPortrait;
plPlayerController.screenRatio = maxHeight / maxWidth;

View File

@@ -126,6 +126,7 @@ class VideoDetailController extends GetxController
..brightness.value = -1;
bool get setSystemBrightness => plPlayerController.setSystemBrightness;
bool get removeSafeArea => plPlayerController.removeSafeArea;
double get uiScale => plPlayerController.uiScale;
late VideoItem firstVideo;
String? videoUrl;

View File

@@ -460,8 +460,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
maxWidth = size.width;
maxHeight = size.height;
isWindowMode = MaxScreenSize.isWindowMode(
width: maxWidth,
height: maxHeight,
width: maxWidth * videoDetailController.uiScale,
height: maxHeight * videoDetailController.uiScale,
);
videoDetailController.plPlayerController.screenRatio = maxHeight / maxWidth;