Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6e7ad1

Browse files
authored
Let the FAB compute the notch even when it doesn't overlap the BAB. (flutter#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.
1 parent 5d39f15 commit c6e7ad1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/flutter/lib/src/material/bottom_app_bar.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ class _BottomAppBarClipper extends CustomClipper<Path> {
117117
final Rect button = geometry.value.floatingActionButtonArea
118118
.translate(0.0, geometry.value.bottomNavigationBarTop * -1.0);
119119

120-
if (!appBar.overlaps(button)) {
121-
return new Path()..addRect(appBar);
122-
}
123-
124120
final ComputeNotch computeNotch = geometry.value.floatingActionButtonNotch;
125121
return new Path()
126122
..moveTo(appBar.left, appBar.top)

0 commit comments

Comments
 (0)