mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
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) {
|
||||
bodyMaxHeight += bottomWidgetsHeight;
|
||||
bodyMaxHeight = bodyMaxHeight.clamp(0.0, looseConstraints.maxHeight - contentTop).toDouble();
|
||||
assert(bodyMaxHeight <= math.max(0.0, looseConstraints.maxHeight - contentTop));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue