opt: video width

Closes #267

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-16 13:36:57 +08:00
parent 74bf78b9cd
commit fa465f792d

View File

@@ -822,8 +822,11 @@ class _VideoDetailPageState extends State<VideoDetailPage>
],
);
}
final double videoWidth =
double videoWidth =
max(context.height / context.width * 1.04, 1 / 2) * context.width;
if (context.width >= 560) {
videoWidth = min(videoWidth, context.width - 280);
}
final double videoHeight = videoWidth * 9 / 16;
return Row(
children: [