Clamp Scaffold's max body height when extendBody is true (#37254)
This commit is contained in:
parent
f3674ccfd7
commit
28dd0fde3b
@ -432,6 +432,7 @@ class _ScaffoldLayout extends MultiChildLayoutDelegate {
|
|||||||
|
|
||||||
if (extendBody) {
|
if (extendBody) {
|
||||||
bodyMaxHeight += bottomWidgetsHeight;
|
bodyMaxHeight += bottomWidgetsHeight;
|
||||||
|
bodyMaxHeight = bodyMaxHeight.clamp(0.0, looseConstraints.maxHeight - contentTop).toDouble();
|
||||||
assert(bodyMaxHeight <= math.max(0.0, looseConstraints.maxHeight - contentTop));
|
assert(bodyMaxHeight <= math.max(0.0, looseConstraints.maxHeight - contentTop));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user