Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-25 12:21:16 +08:00
parent b43840b636
commit e9dc154642
13 changed files with 423 additions and 408 deletions

View File

@@ -1370,7 +1370,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
child = plPlayer(width: maxWidth, height: maxHeight, isPipMode: true);
} else if (!videoDetailController.horizontalScreen) {
child = childWhenDisabled;
} else if (maxWidth > maxHeight * kScreenRatio) {
} else if (maxWidth / maxHeight >= kScreenRatio) {
child = childWhenDisabledLandscape;
} else if (maxWidth * (9 / 16) < (2 / 5) * maxHeight) {
child = childWhenDisabled;
@@ -1742,7 +1742,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
showEpisodes: showEpisodes,
onShowMemberPage: onShowMemberPage,
isPortrait: isPortrait,
isHorizontal: isHorizontal ?? width! > height! * kScreenRatio,
isHorizontal: isHorizontal ?? width! / height! >= kScreenRatio,
),
if (needRelated &&
videoDetailController