mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-04 18:14:58 +08:00
opt video bottomsheet
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -7,10 +7,10 @@ class CustomFractionallySizedBox extends FractionallySizedBox {
|
||||
const CustomFractionallySizedBox({
|
||||
super.key,
|
||||
super.alignment,
|
||||
super.widthFactor,
|
||||
super.heightFactor,
|
||||
super.child,
|
||||
required double super.widthFactor,
|
||||
required double super.heightFactor,
|
||||
required this.maxWidth,
|
||||
super.child,
|
||||
});
|
||||
|
||||
final double maxWidth;
|
||||
@@ -44,7 +44,10 @@ class CustomRenderFractionallySizedOverflowBox
|
||||
double minWidth = constraints.minWidth;
|
||||
double maxWidth = constraints.maxWidth;
|
||||
if (widthFactor != null) {
|
||||
final double width = math.min(_maxWidth, maxWidth * widthFactor!);
|
||||
double width = maxWidth * widthFactor!;
|
||||
if (maxWidth > constraints.maxHeight) {
|
||||
width = math.min(_maxWidth, width);
|
||||
}
|
||||
minWidth = width;
|
||||
maxWidth = width;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user