Unverified Commit c6e7ad1c authored by amirh's avatar amirh Committed by GitHub

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.
parent 5d39f15c
......@@ -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)
......
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