mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-04 10:04:48 +08:00
constraint video bottomsheet
Closes #2277 Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:PiliPlus/common/widgets/fractionally_sized_box.dart';
|
||||
import 'package:PiliPlus/common/widgets/image_viewer/gallery_viewer.dart';
|
||||
import 'package:PiliPlus/common/widgets/image_viewer/hero_dialog_route.dart';
|
||||
import 'package:PiliPlus/grpc/im.dart';
|
||||
@@ -496,6 +497,7 @@ abstract final class PageUtils {
|
||||
required Widget child,
|
||||
required ValueGetter<bool> isFullScreen,
|
||||
double? padding,
|
||||
double maxWidth = 500,
|
||||
}) {
|
||||
if (!context.mounted) {
|
||||
return null;
|
||||
@@ -519,7 +521,8 @@ abstract final class PageUtils {
|
||||
);
|
||||
}
|
||||
return SafeArea(
|
||||
child: FractionallySizedBox(
|
||||
child: CustomFractionallySizedBox(
|
||||
maxWidth: maxWidth,
|
||||
widthFactor: 0.5,
|
||||
heightFactor: 1.0,
|
||||
alignment: Alignment.centerRight,
|
||||
|
||||
Reference in New Issue
Block a user