Skip to content

systemNavigationBarColor not working After Upgrading from Flutter 3.29.3 to 3.32.1 #169746

Open

Description

@Tom3652

Steps to reproduce

Run an app an android physical device with a bottom navigation bar visible (not flutter widget, the Android actual Bottom Navigation bar independent from any apps) and see it's not transparent when using the below code.

Expected results

the bottom navigation bar should be transparent

Actual results

The bottom navigation bar is always black from flutter: 3.32.1.
It's working fine on flutter: 3.29.3

Code sample

Code sample

You must use this code in your main.dart to see that it's not working.

  SystemChrome.setSystemUIOverlayStyle(
    const SystemUiOverlayStyle(
      systemNavigationBarColor: Colors.transparent,
    ),
  );

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.32.1, on macOS 15.5 24F74 darwin-x64, locale fr-FR) [1 931ms]
    • Flutter version 3.32.1 on channel stable at /Users/foxtom/Desktop/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b25305a883 (16 hours ago), 2025-05-29 10:40:06 -0700
    • Engine revision 1425e5e9ec
    • Dart version 3.8.1
    • DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [12,3s]
    • Android SDK at /Users/foxtom/Library/Android/sdk
    • Platform android-36, build-tools 36.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [5,9s]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16F6
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [107ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [102ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[✓] VS Code (version 1.100.2) [90ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (5 available) [11,9s]
    • sdk gphone64 x86 64 (mobile)       • emulator-5554             • android-x64    • Android 16 (API 36) (emulator)
    • Now You See Me (wireless) (mobile) • 00008020-001204401E78002E • ios            • iOS 18.5 22F76
    • macOS (desktop)                    • macos                     • darwin-x64     • macOS 15.5 24F74 darwin-x64
    • Chrome (web)                       • chrome                    • web-javascript • Google Chrome 137.0.7151.55

[✓] Network resources [850ms]
    • All expected network resources are available.

• No issues found!

Activity

  1. added
    in triage
    on May 30, 2025
  2. tirth-patel-nc commented on May 30, 2025

    @tirth-patel-nc
    Member

    Triage Report

    I was able to reproduce the issue using the provided code sample on the stable (3.32.1) and master (3.33.0-1.0.pre.287) channels. However it is working as expected on stable (3.29.3). Since you are using api 35+, the behavior you’re seeing might be related to what’s described here: #160328 #163545. please check and confirm.

    Runnable Sample
    import 'package:flutter/material.dart';
    import 'package:flutter/services.dart';
    
    void main() {
      runApp(
        MaterialApp(
          theme: ThemeData(
            colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
          ),
          home: Scaffold(body: Center(child: Text("data"))),
        ),
      );
      SystemChrome.setSystemUIOverlayStyle(
        SystemUiOverlayStyle(
          systemNavigationBarColor: Colors.red, // No effect
          statusBarColor: Colors.transparent,
        ),
      );
      SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
    }
    Output
    3.29.3 3.32.0 and above
    Image Image
  3. added
    waiting for response
    on May 30, 2025
  4. Tom3652 commented on May 30, 2025

    @Tom3652
    Author

    Hi @tirth-patel-nc thanks for confirming the issue !
    I confirm indeed that i am targeting API 36 in my app, i have the following code on many of my production apps inside the main() method :

     SystemChrome.setSystemUIOverlayStyle(
        const SystemUiOverlayStyle(
          systemNavigationBarColor: Colors.transparent,
        ),
      );
      SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
      SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);

    And it was working until i upgrade to flutter : 3.32.x

    I also confirm that i still have this warning from Google Play Console as mentioned in the issues you have linked :

    Image

    My style.xml files looks like that :

    <?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:forceDarkAllowed">false</item>
            <item name="android:windowFullscreen">false</item>
            <item name="android:windowDrawsSystemBarBackgrounds">false</item>
            <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</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>
  5. removed
    waiting for response
    on May 30, 2025
  6. jgaugeritc commented on May 30, 2025

    @jgaugeritc
  7. eclothy commented on May 31, 2025

    @eclothy

    same issue, when i upgrade flutter 3.22.2 to 3.32.0, everything is fine but navigation bar is always black.

  8. tirth-patel-nc commented on Jun 2, 2025

    @tirth-patel-nc
    Member
  9. added
    waiting for response
    on Jun 2, 2025
  10. Tom3652 commented on Jun 2, 2025

    @Tom3652
    Author

    Thanks for pointing out all this, i admit i had not read the Android documentation part but i have already checked the Breaking changes of Flutter regarding EdgeToEdge.

    So regarding my current issue, this is the correct behavior that running a Flutter app on Android device targetting Android 15+ means that the bottom navigation color will never change anymore.
    That also means that flutter: 3.32.1 targets Android 15+ and flutter: 3.29.3 is not targeting it right ?

    That's why my Android 11 physical device no longer see the transparent navigation bar.

    So in the future, there will be no ways to set the navigation bar color anymore on Android ?

    Regarding the issue you have linked, it seems to be only about the statusBar so i think it should be renamed to take in consideration the navigationBar as well but the links you sent explains it quite well.

    We just have to understand ourselves the consequences of that change, it's not obvious, an concrete example would be highly appreciated and would avoid raising issues like mine because i had not understand that this is the "new-correct" behavior on Android to not be able to change the navigation bar color on EdgeToEdge on Android 15+.

  11. removed
    waiting for response
    on Jun 2, 2025
  12. tristanguerin commented on Jun 2, 2025

    @tristanguerin

    This is the issue I've been looking for since the Flutter 3.32 upgrade, thanks !!

    Does it means that for all devices with Android SDK < 15, there is no possibility to set the navigation bar transparent ? The only workaround would be to downgrade Flutter ?

    I tried many workarounds, none of them worked (style.xml, MainActivity.kt, ...).

  13. ThomasDevApps commented on Jun 2, 2025

    @ThomasDevApps

    @tristanguerin You can achieve this by using the systemOverlayStyle parameter of the AppBar (or SliverAppBar) as below :

    Scaffold(
      appBar: AppBar(
        systemOverlayStyle: const SystemUiOverlayStyle(), // Customize here
      ),
      body: const Placeholder(),
    );
  14. tristanguerin commented on Jun 2, 2025

    @tristanguerin

    @ThomasDevApps Awesome, thank you !!! (Also works in theme which is perfect 😃)

  15. tirth-patel-nc commented on Jun 3, 2025

    @tirth-patel-nc
    Member

    Triage Report

    I was able to reproduce the issue using the provided code sample on the stable (3.32.1) and master (3.33.0-1.0.pre.287) channels. However it is working as expected on stable (3.29.3). Since you are using api 35+, the behavior you’re seeing might be related to what’s described here: #160328 #163545. please check and confirm.

    Runnable Sample
    Output

    Tested on API 33, 34, and 36 for 3 flutter versions and on 3.29.3 it works fine. Labelling it as a regression.

    3.29.3 3.32.1 & Master
    Image Image
  16. 25 remaining items

  17. Tom3652 commented on Jul 27, 2025

    @Tom3652
    Author

    Hi @Mairramer , thanks for your code :

    return AnnotatedRegion<SystemUiOverlayStyle>(
      value: const SystemUiOverlayStyle(
        statusBarColor: Colors.transparent,
        systemNavigationBarColor: Colors.transparent,
        systemNavigationBarContrastEnforced: true,
      ),
      child: MaterialApp.router(...)
    );

    This is working fine !

  18. yaochangliang159 commented on Sep 22, 2025

    @yaochangliang159

    you can try this code,global set color:
    runApp( MaterialApp(theme: ThemeData( // 全局AppBar主题设置 appBarTheme: const AppBarTheme( systemOverlayStyle: SystemUiOverlayStyle( statusBarColor: Colors.transparent, systemNavigationBarColor: Colors.white, ), // 更多样式设置... ), // 其他全局主题设置... primarySwatch: Colors.blue, ), home: AMapDemo(), ), );

  19. added
    ⏳
    on Nov 5, 2025
  20. flutter-triage-bot commented on Nov 5, 2025

    @flutter-triage-bot

    This issue is assigned to @jesswrd but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!

  21. IbrokhimMirzaev commented on Dec 1, 2025

    @IbrokhimMirzaev
  22. removed
    triaged-android
    on Jan 21, 2026
  23. flutter-triage-bot commented on Jan 21, 2026

    @flutter-triage-bot

    This issue was assigned to @jesswrd but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.

  24. removed
    ⏳
    on Jan 21, 2026
  25. added
    triaged-android
    on Jan 27, 2026
  26. added
    package
    and removed
    framework
    on Aug 17, 2026
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

    P2c: regressionfound in release: 3.32found in release: 3.33has reproducible stepsp: material_uipackageplatform-androidteam-androidtriaged-android

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions