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:
parent
5d39f15c69
commit
c6e7ad1cfb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user