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.
This commit is contained in:
amirh 2018-02-23 15:34:03 -08:00 committed by GitHub
parent 5d39f15c69
commit c6e7ad1cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,10 +117,6 @@ class _BottomAppBarClipper extends CustomClipper<Path> {
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)