Skip to content

🐞 Bug Report: UI Overlap with System Navigation Bar on Specific Android Devices (Flutter 3.32) #170640

Closed

Description

@Mohammad-Abureesh

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:
Image

Image


βœ… 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.

Activity

  1. alihassan143 commented on Jun 15, 2025

    @alihassan143

    @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

      SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
          overlays: [SystemUiOverlay.top]);
    

    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

  2. huzefmd commented on Jun 15, 2025

    @huzefmd

    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

  3. Mohammad-Abureesh commented on Jun 15, 2025

    @Mohammad-Abureesh
    Author
  4. Mohammad-Abureesh commented on Jun 15, 2025

    @Mohammad-Abureesh
    Author
  5. Mohammad-Abureesh commented on Jun 16, 2025

    @Mohammad-Abureesh
    Author

    @alihassan143 , This might partially address the issue, but the bottom bar still appears when it shouldn’t:

    SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
         overlays: [SystemUiOverlay.top]);
    

    To properly fix this on Android SDK 35+, we implemented a native Android method channel:

     import android.view.View
    
      window.decorView.post {
                window.decorView.systemUiVisibility = (
                        View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                                or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                                or View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                                or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
                        )
            }
    

    Thanks for your response on this issue. If anyone has new suggestions, feel free to share them in the comments! πŸ™

  6. UprightBiswa commented on Jun 16, 2025

    @UprightBiswa
  7. suhailmk-kayla commented on Jun 23, 2025

    @suhailmk-kayla

    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.

  8. alihassan143 commented on Jun 23, 2025

    @alihassan143

    @suhailmk-kayla its default android behaviour you cannot disable that

  9. added
    in triage
    on Jun 25, 2025
  10. darshankawar commented on Jun 25, 2025

    @darshankawar
    Member

    @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.

  11. added
    waiting for response
    on Jun 25, 2025
  12. Mohammad-Abureesh commented on Jun 25, 2025

    @Mohammad-Abureesh
    Author

    @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.

    @darshankawar
    Thank you for the follow-up.

    Here are the requested device and environment details:

    Device Model: Pixel 6a

    Android Version: 15

    Flutter Version:

    Flutter 3.32.4 β€’ channel stable β€’ https://github.com/flutter/flutter.git
    Framework β€’ revision 6fba244 (2025-06-12)
    Engine β€’ revision 8cd19e5
    Tools β€’ Dart 3.8.1 β€’ DevTools 2.45.1

    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.

  13. removed
    waiting for response
    on Jun 25, 2025
  14. 11 remaining items

  15. darshankawar commented on Jun 26, 2025

    @darshankawar
    Member

    The One UI 7.0

    #168635

  16. added
    waiting for response
    on Jun 26, 2025
  17. Mohammad-Abureesh commented on Jun 26, 2025

    @Mohammad-Abureesh
    Author

    @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.

                  builder: (context, child) =>
                      ResponsiveWrapperBuilder.platform.builder(
                          context,
                          MediaQuery(
                            data: MediaQuery.of(context).copyWith(),
                            child: SafeArea(
                                bottom: true,
                                top: false,
                                child: child ?? SizedBox(()),
                          )),
                )); 
    
  18. removed
    waiting for response
    on Jun 26, 2025
  19. darshankawar commented on Jun 27, 2025

    @darshankawar
    Member

    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.

  20. added
    r: solved
    and removed
    in triage
    on Jun 27, 2025
  21. sakthivelflutter commented on Jun 27, 2025

    @sakthivelflutter
    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>
    
  22. Mohammad-Abureesh commented on Jun 29, 2025

    @Mohammad-Abureesh
    Author
    use this in styles.xml. its works for me
    

    @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.

  23. Mohammad-Abureesh commented on Jul 1, 2025

    @Mohammad-Abureesh
    Author

    @darshankawar @IrshadSTX

    Image

    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!

  24. darshankawar commented on Jul 2, 2025

    @darshankawar
    Member

    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.

  25. RohanPatel2696 commented on Jul 9, 2025

    @RohanPatel2696

    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
    );
    
    
  26. github-actions commented on Jul 23, 2025

    @github-actions

    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.

  27. locked as resolved and limited conversation to collaborators on Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: solved

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions