Adapt to 16:10 tablet (#660)

* Update view.dart

* Update view_v.dart
This commit is contained in:
allllllllllla
2025-04-11 00:18:24 +08:00
committed by GitHub
parent a45da453ce
commit de029b7043
2 changed files with 2 additions and 2 deletions

View File

@@ -463,7 +463,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
Widget get _buildBodyH {
double videoWidth =
clampDouble(context.height / context.width * 1.04, 0.58, 0.75) *
clampDouble(context.height / context.width * 1.08, 0.58, 0.75) *
context.width;
return Expanded(
child: Row(

View File

@@ -1222,7 +1222,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
);
}
double videoWidth =
clampDouble(context.height / context.width * 1.04, 0.5, 0.7) *
clampDouble(context.height / context.width * 1.08, 0.5, 0.7) *
context.width;
if (context.width >= 560) {
videoWidth = min(videoWidth, context.width - 280);