You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Floating Action Button (FAB) notch margin does not show content of body on scroll #17555
Reacted by Tom Newton, Nitneuq, Ishaan Bahal, Peter Siegmund, tatsuyanarita, Cristian Zazo, Vital, Gildásio Filho, RuiffCardoso, Kolja Esders and 9 more
changed the title [-][Scaffold + Notched Floating Action Button] NotchMargin does not show content of body on scroll[/-][+][Scaffold + Notched Floating Action Button] Floating Action Button (FAB) notch margin does not show content of body on scroll[/+]on May 14, 2018
changed the title [-][Scaffold + Notched Floating Action Button] Floating Action Button (FAB) notch margin does not show content of body on scroll[/-][+]Floating Action Button (FAB) notch margin does not show content of body on scroll[/+]on May 14, 2018
While we can make this a flag (either put body above the BAB or over the entire scaffold), I believe there are use cases where you need both simultaneously, e.g you want to have things show behind the BAB but also to layout out other things just above the BAB.
An example app that does that is Google Camera where the camera preview and preview overlay (e.g focus ring) extend below the BAB, but some elements (e.g the burst chip) are laid out above the BAB.
On the other hand this adds another parameter to Scaffold which is already pretty complex.
I agree that, for the sake of flexibility, we should enable developers to provide a body that extends behind the BAB as well as above it.
Maybe should provide a Widget valued Scaffold.fullBody (extendedBody?) that extends all they way behind the app bar and likewise below the BAB. The fullBody widget would be stacked behind the body.
@GuyMS , in a related issue (#17088), RyanAfrish7 wants to put the body behind transparent Appbar. He suggested the following workaround:
Remove the appBar from the appBar slot of the Scaffold. Add the appBar into a Stack within the Scaffold's body. Add another Container to fill the screen to the Stack. Add all the components into that Container. That's it. You may now add background blur to the appBar and it works like a charm.
It will require more customisations for my case, but for you it looks like it should workaround your problem.
Any actual solution to this issue yet? I've stumbled on the same issue with the latest version.
From flutter doctor: Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-IN)
@RuiffCardoso I'm only using a Row + two IconButtons for the BottomAppBar's content, and my notchMargin is intact. Although this worked for a few reloads, after a full restart it started returning an error regarding _BottomAppBarClipper, so I had to revert to using Scaffold's bottomNavigationBar.
I agree that, for the sake of flexibility, we should enable developers to provide a body that extends behind the BAB as well as above it.
Maybe should provide a Widget valued Scaffold.fullBody (extendedBody?) that extends all they way behind the app bar and likewise below the BAB. The fullBody widget would be stacked behind the body.
Hey @HoangKimDuc it is a nice workaround! But I believe the framework should support it directly without the need of a workaround.
Anyone has any idea if this will be implemented soon ?
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[-][Scaffold + Notched Floating Action Button] NotchMargin does not show content of body on scroll[/-][+][Scaffold + Notched Floating Action Button] Floating Action Button (FAB) notch margin does not show content of body on scroll[/+][-][Scaffold + Notched Floating Action Button] Floating Action Button (FAB) notch margin does not show content of body on scroll[/-][+]Floating Action Button (FAB) notch margin does not show content of body on scroll[/+]HansMuller commentedon May 14, 2018
You are correct and thanks for the nice example.
This appears to be a problem with Scaffold's internal layout.
amirh commentedon Jun 6, 2018
While we can make this a flag (either put body above the BAB or over the entire scaffold), I believe there are use cases where you need both simultaneously, e.g you want to have things show behind the BAB but also to layout out other things just above the BAB.
An example app that does that is Google Camera where the camera preview and preview overlay (e.g focus ring) extend below the BAB, but some elements (e.g the burst chip) are laid out above the BAB.
On the other hand this adds another parameter to Scaffold which is already pretty complex.
@HansMuller @Hixie any thoughts?
HansMuller commentedon Jun 6, 2018
I agree that, for the sake of flexibility, we should enable developers to provide a body that extends behind the BAB as well as above it.
Maybe should provide a Widget valued Scaffold.fullBody (extendedBody?) that extends all they way behind the app bar and likewise below the BAB. The fullBody widget would be stacked behind the body.
nitneuq33000 commentedon Jul 7, 2018
I hope that a solution can be found
Zaxist commentedon Aug 2, 2018
Hi guys, does anyone know of a workaround to this issue currently?
mrmitew commentedon Aug 8, 2018
Also, if I were to pull a bottom sheet only moves the fab, removing the notch (obviously) and giving a buggy effect.
I'm attaching two pictures that illustrate the problem.


And as it can be seen in the pictures above, the appbar is drawn on top of the bottom sheet.
mrmitew commentedon Aug 9, 2018
@GuyMS , in a related issue (#17088), RyanAfrish7 wants to put the body behind transparent Appbar. He suggested the following workaround:
It will require more customisations for my case, but for you it looks like it should workaround your problem.
ishaanbahal commentedon Oct 1, 2018
Any actual solution to this issue yet? I've stumbled on the same issue with the latest version.
From flutter doctor:
Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-IN)RuiffCardoso commentedon Dec 13, 2018
Having the same issue
3 remaining items
mrmitew commentedon Dec 18, 2018
Well done, guys.
You can make a custom clipper and cut the InkWell, but you'll need to make sure it has to follow the same notch patch.
gildaswise commentedon Dec 18, 2018
@RuiffCardoso I'm only using a Row + two IconButtons for the BottomAppBar's content, and my notchMargin is intact. Although this worked for a few reloads, after a full restart it started returning an error regarding
_BottomAppBarClipper, so I had to revert to using Scaffold'sbottomNavigationBar.IKatsuba commentedon Dec 21, 2018
#25654 I did something like that
shinayser commentedon Jan 10, 2019
Any update on this?
HansMuller commentedon Jan 18, 2019
@shinayser - working with @IKatsuba on a solution (finally). Sorry that it's taken SO long.
James-D-Dev commentedon Jan 30, 2019
My solution:
it's worked.
shinayser commentedon Jan 30, 2019
Hey @HoangKimDuc it is a nice workaround! But I believe the framework should support it directly without the need of a workaround.
Anyone has any idea if this will be implemented soon ?
IKatsuba commentedon Jan 30, 2019
@shinayser look here #25654
creativecreatorormaybenot commentedon Feb 21, 2019
Implemented with
Scaffold(extendBody: true). See also: #27973HansMuller commentedon Feb 25, 2019
Fixed in #25654 which was updated and landed as #27973
radeksvarz commentedon May 12, 2020
Regression in [√] Flutter (Channel master, 1.19.0-1.0.pre.26, on Microsoft Windows [Version 10.0.18362.778], locale en-150)
when Scaffold's extendBody is set to true
Zazo032 commentedon May 12, 2020
You should open a new issue.
github-actions commentedon Aug 15, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.