From c6e7ad1cfbc1c85ec4e1f86b9ca682726e6a49cc Mon Sep 17 00:00:00 2001 From: amirh Date: Fri, 23 Feb 2018 15:34:03 -0800 Subject: [PATCH] Let the FAB compute the notch even when it doesn't overlap the BAB. (#14852) The Floating Action Button adds some margin around it for the notch. So we need to compute a notch even when the FAB and the Bottom App Bar doe not overlap. --- packages/flutter/lib/src/material/bottom_app_bar.dart | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/flutter/lib/src/material/bottom_app_bar.dart b/packages/flutter/lib/src/material/bottom_app_bar.dart index aee08f4ce1..41b7334968 100644 --- a/packages/flutter/lib/src/material/bottom_app_bar.dart +++ b/packages/flutter/lib/src/material/bottom_app_bar.dart @@ -117,10 +117,6 @@ class _BottomAppBarClipper extends CustomClipper { final Rect button = geometry.value.floatingActionButtonArea .translate(0.0, geometry.value.bottomNavigationBarTop * -1.0); - if (!appBar.overlaps(button)) { - return new Path()..addRect(appBar); - } - final ComputeNotch computeNotch = geometry.value.floatingActionButtonNotch; return new Path() ..moveTo(appBar.left, appBar.top)