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
π Bug Report: UI Overlap with System Navigation Bar on Specific Android Devices (Flutter 3.32)Β #170640
Description
After upgrading to Flutter 3.32, we started experiencing a UI issue where certain components β such as the BottomNavigationBar, BottomSheets, and other bottom-aligned elements β overlap with the Android system navigation bar. This behavior occurs only on specific Android devices (particularly with gesture navigation enabled), and we haven't been able to determine the exact cause. It appears to be related to how system insets are handled in Flutter 3.32.
Screenshot
check these images:
β Expected Behavior
UI components like BottomNavigationBar, BottomSheet, and others should respect the safe area or view insets and avoid overlapping with the system navigation bar.
β Actual Behavior
On affected devices, UI elements are rendered behind the system navigation bar, making them partially unusable or invisible.
Attempted Workarounds
Wrapping components in SafeArea (works locally but not scalable across the entire app).
Adding manual bottom padding via MediaQuery.viewPadding.bottom.
Using useSafeArea: true in showModalBottomSheet.
Applying global SafeArea via MaterialApp.builder.
-> None of these fully resolve the issue across all components and devices.
π We believe this may be related to changes introduced in Flutter 3.32 that affect how system insets are handled. If this is expected behavior, guidance on how to implement a global solution across an app would be appreciated.
@Mohammad-Abureesh this behaviour only observed in android 15 devices because flutter default edge to edge feature in enabled you can control that by using
by detecting android 15 device (API level 35) and setting that property in init method of your splash screen this will remove the gesture button automatically even they are enabled for your app
this is a known issue that emerged with Flutter 3.32, particularly related to how system insets and gesture navigation are handled on some Android devices. Many developers have reported bottom-aligned widgets overlapping with the system navigation bar, and this behavior seems to stem from internal changes in Flutterβs handling of MediaQuery insets and safe areas.
Wrap Entire App in SafeArea via MaterialApp.builder
Most of the workarounds shared above only temporarily hide the bottom system navigation bar. Users can still bring it back at any time using swipe-up gestures or other system interactions.
Is there any known way to permanently hide or disable the gesture-based system navigation bar (on android 14+) when using Flutter? A more robust or native-level solution would be greatly appreciated.
@Mohammad-Abureesh Can you provide device details in which you are seeing the reported behavior ? Are you using any plugin / platform-view in your code that shows the reported behavior ? Or using One UI version 7 on Samsung devices ?
If so, you could be hitting either of below issues:
@Mohammad-Abureesh Can you provide device details in which you are seeing the reported behavior ? Are you using any plugin / platform-view in your code that shows the reported behavior ? Or using One UI version 7 on Samsung devices ? If so, you could be hitting either of below issues:
We are not using any third-party plugins related to platform views, and the issue is not related to One UI, as this is occurring on a Pixel 6a, im not try it on Samsung device. The behavior also occurs in a minimal setup using only standard Flutter widgets. While we donβt have a specific reproducible code sample at the moment, the issue consistently appears when running the app on devices with Android SDK level 34 (Android 15) or higher. Specifically, the system bottom navigation bar overlaps or hides interactive elements located at the bottom of the app UI.
This is currently affecting production users and is considered a critical issue on our side.
@darshankawar thanks for all help @IrshadSTX thanks , I already tried the same code you shared, and it worked for me after moving the SafeArea inside the ResponsiveWrapperBuilder.
use this in styles.xml. its works for me
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
@sakthivelflutter
Thanks β
It works on some Android devices, but not all. For example, we encountered issues with Samsung devices running One UI 7 after adding it to the Android XML values.
Please note that this is a temporary solution and not recommended for long-term use, as it may be deprecated or removed in a future stable release, as mentioned by other participants in the comments and in the official guidelines.
After fixing issue with SafeArea, Iβve encountered a new problem: a black bar now appears above the system bottom bar across all app screens after adding the recent SafeArea-related changes. Could this be related to the SafeArea configuration or a theme issue? Any advice on how to resolve this would be greatly appreciated! Thanks!
Iβve encountered a new problem: a black bar now appears above the system bottom bar across all app screens after adding the recent SafeArea-related changes
Please file a new issue using template and fill out requested details so that we can address it properly.
When I encountered this issue, I resolved the overlapping problem globally by adding the following code:
MaterialApp(
builder: (context, child) {
return SafeArea(
top: false, // Set to true if you want to avoid notch overlap too
bottom: true, // Avoids overlap with navigation bar
child: child!,
);
},
home: YourHomePage(), // Or your main screen
);
Reacted by Rohan Patel, sravaniv3, Enetty and AdityaAde
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
alihassan143 commentedon Jun 15, 2025
@Mohammad-Abureesh this behaviour only observed in android 15 devices because flutter default edge to edge feature in enabled you can control that by using
by detecting android 15 device (API level 35) and setting that property in init method of your splash screen this will remove the gesture button automatically even they are enabled for your app
huzefmd commentedon Jun 15, 2025
this is a known issue that emerged with Flutter 3.32, particularly related to how system insets and gesture navigation are handled on some Android devices. Many developers have reported bottom-aligned widgets overlapping with the system navigation bar, and this behavior seems to stem from internal changes in Flutterβs handling of MediaQuery insets and safe areas.
Wrap Entire App in SafeArea via MaterialApp.builder
Mohammad-Abureesh commentedon Jun 15, 2025
Mohammad-Abureesh commentedon Jun 15, 2025
Mohammad-Abureesh commentedon Jun 16, 2025
@alihassan143 , This might partially address the issue, but the bottom bar still appears when it shouldnβt:
To properly fix this on Android SDK 35+, we implemented a native Android method channel:
Thanks for your response on this issue. If anyone has new suggestions, feel free to share them in the comments! π
UprightBiswa commentedon Jun 16, 2025
suhailmk-kayla commentedon Jun 23, 2025
Most of the workarounds shared above only temporarily hide the bottom system navigation bar. Users can still bring it back at any time using swipe-up gestures or other system interactions.
Is there any known way to permanently hide or disable the gesture-based system navigation bar (on android 14+) when using Flutter? A more robust or native-level solution would be greatly appreciated.
alihassan143 commentedon Jun 23, 2025
@suhailmk-kayla its default android behaviour you cannot disable that
darshankawar commentedon Jun 25, 2025
@Mohammad-Abureesh Can you provide device details in which you are seeing the reported behavior ? Are you using any plugin / platform-view in your code that shows the reported behavior ? Or using One UI version 7 on Samsung devices ?
If so, you could be hitting either of below issues:
#170333
#168635
There's another issue but it isn't about overlapping the elements: #169746
In either ways, please provide us complete reproducible code sample without third party package implementations.
Mohammad-Abureesh commentedon Jun 25, 2025
@darshankawar
Thank you for the follow-up.
Here are the requested device and environment details:
Device Model: Pixel 6a
Android Version: 15
Flutter Version:
We are not using any third-party plugins related to platform views, and the issue is not related to One UI, as this is occurring on a Pixel 6a, im not try it on Samsung device. The behavior also occurs in a minimal setup using only standard Flutter widgets. While we donβt have a specific reproducible code sample at the moment, the issue consistently appears when running the app on devices with Android SDK level 34 (Android 15) or higher. Specifically, the system bottom navigation bar overlaps or hides interactive elements located at the bottom of the app UI.
This is currently affecting production users and is considered a critical issue on our side.
11 remaining items
darshankawar commentedon Jun 26, 2025
#168635
Mohammad-Abureesh commentedon Jun 26, 2025
@darshankawar thanks for all help
@IrshadSTX thanks , I already tried the same code you shared, and it worked for me after moving the SafeArea inside the ResponsiveWrapperBuilder.
darshankawar commentedon Jun 27, 2025
Closing as resolved based on above comment. The other issue you are facing is due to One UI 7.0 for which you can follow-up in linked issue.
sakthivelflutter commentedon Jun 27, 2025
Mohammad-Abureesh commentedon Jun 29, 2025
@sakthivelflutter
Thanks β
It works on some Android devices, but not all. For example, we encountered issues with Samsung devices running One UI 7 after adding it to the Android XML values.
Please note that this is a temporary solution and not recommended for long-term use, as it may be deprecated or removed in a future stable release, as mentioned by other participants in the comments and in the official guidelines.
Mohammad-Abureesh commentedon Jul 1, 2025
@darshankawar @IrshadSTX
After fixing issue with SafeArea, Iβve encountered a new problem: a black bar now appears above the system bottom bar across all app screens after adding the recent SafeArea-related changes. Could this be related to the SafeArea configuration or a theme issue? Any advice on how to resolve this would be greatly appreciated! Thanks!
darshankawar commentedon Jul 2, 2025
Please file a new issue using template and fill out requested details so that we can address it properly.
RohanPatel2696 commentedon Jul 9, 2025
When I encountered this issue, I resolved the overlapping problem globally by adding the following code:
github-actions commentedon Jul 23, 2025
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.