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

@@ -318,9 +318,9 @@ class MyApp extends StatelessWidget {
data: mediaQuery.copyWith(
textScaler: textScaler,
size: mediaQuery.size / uiScale,
padding: (tmpPadding ?? mediaQuery.padding) / uiScale,
padding: tmpPadding ?? mediaQuery.padding / uiScale,
viewInsets: mediaQuery.viewInsets / uiScale,
viewPadding: (tmpPadding ?? mediaQuery.viewPadding) / uiScale,
viewPadding: tmpPadding ?? mediaQuery.viewPadding / uiScale,
devicePixelRatio: mediaQuery.devicePixelRatio * uiScale,
),
child: child!,

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;

View File

@@ -360,6 +360,8 @@ class PlPlayerController with BlockConfigMixin {
late final showFsScreenshotBtn = Pref.showFsScreenshotBtn;
late final showFsLockBtn = Pref.showFsLockBtn;
late final keyboardControl = Pref.keyboardControl;
late final uiScale = Pref.uiScale;
late final bool autoEnterFullScreen = Pref.autoEnterFullScreen;
late final bool autoExitFullscreen = Pref.autoExitFullscreen;