mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: video width
Closes #267 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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;
|
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;
|
final double videoHeight = videoWidth * 9 / 16;
|
||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user