Unverified Commit e3079a33 authored by Kate Lovett's avatar Kate Lovett Committed by GitHub

Add additional float location case (#61171)

parent f32a7371
......@@ -443,12 +443,13 @@ mixin FabFloatOffsetY on StandardFabLocation {
@override
double getOffsetY(ScaffoldPrelayoutGeometry scaffoldGeometry, double adjustment) {
final double contentBottom = scaffoldGeometry.contentBottom;
final double bottomContentHeight = scaffoldGeometry.scaffoldSize.height - contentBottom;
final double bottomSheetHeight = scaffoldGeometry.bottomSheetSize.height;
final double fabHeight = scaffoldGeometry.floatingActionButtonSize.height;
final double snackBarHeight = scaffoldGeometry.snackBarSize.height;
final double safeMargin = math.max(
kFloatingActionButtonMargin,
scaffoldGeometry.minViewPadding.bottom,
scaffoldGeometry.minViewPadding.bottom - bottomContentHeight,
);
double fabY = contentBottom - fabHeight - safeMargin;
......
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