-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent bottom sheet does not respect SafeArea #69676
Comments
SafeArea
Reproducible on latest master as well. flutter doctor -v
|
The same issue occurs when directly setting the Scaffold(
bottomSheet: SafeArea(
// ...
),
) |
This top safe area is also not respected as outlined in this stackoverflow post. The suggested answer is to copy the BottomSheet widget and update the build method to remove the |
Any updates here? Still having this issue |
Faced this issue too with top-notch. Resolved using How it works: So in summary code is showModalBottomSheet<bool>(
context: context,
builder: (BuildContext context) => Container(
height: MediaQuery.of(context).size.height,
padding: EdgeInsets.only(
top: ui.window.viewPadding.top / ui.window.devicePixelRatio,
),
),
); |
We are facing this issue as well. We have a persistent bottom button on the bottom sheet, but it's too low down on iPhone - SafeArea is ignored. Is there a different way to have a persistent bottom button? |
If you wrap the |
There is a workaround here: #50314 (comment) Of note, that issue (#50314) seems to be the same basic issue as this one. |
When showing a persistent bottom sheet
SafeArea
is ignored and does not provide bottom padding:Code:
The text was updated successfully, but these errors were encountered: