Unverified Commit 28dd0fde authored by Shi-Hao Hong's avatar Shi-Hao Hong Committed by GitHub

Clamp Scaffold's max body height when extendBody is true (#37254)

parent f3674ccf
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment