Skip to content

SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(statusBarColor: theme.themeData.primaryColor)) does not work when targeting android 15 api 35 #163545

Closed

Description

@reidbaker

#160328 (comment)

Update documentation to warn about this situation and use api branching to not call the removed apis related to status bar color.

Activity

  1. added
    P1High-priority issues at the top of the work list
    platform-androidAndroid applications specifically
    team-androidOwned by Android platform team
    on Feb 18, 2025
  2. added
    ⏳Bot is counting down the days until it unassigns the issue
    on Jun 24, 2025
  3. flutter-triage-bot commented on Jun 24, 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!

  4. Argaros commented on Sep 3, 2025

    @Argaros

    Is there any update on this?
    I still experience the issue, that I cant change the color of the statusbar and navbar with Android 35.

  5. reidbaker commented on Sep 4, 2025

    @reidbaker
    ContributorAuthor

    @Argaros the update is to our documentation saying that android removed this ability. Not a change in behavior.
    If you want the status bar color to change you will need to put a widget pinned to the top of the screen with the color you want.

  6. removed
    ⏳Bot is counting down the days until it unassigns the issue
    on Sep 4, 2025
  7. vfthome-eleme commented on Dec 4, 2025

    @vfthome-eleme

    Can you fix this.. SystemChrome.setSystemUIOverlayStyle does not work.

    Anotated region does not work too. On Android API 35+

    @ marciofrayze didn't liked my comment, wonder why. If you don't complain things will never change my friend.

  8. reidbaker commented on Dec 4, 2025

    @reidbaker
    ContributorAuthor

    @vfthome-eleme pull requests welcome.

  9. AbdeMohlbi commented on Jan 21, 2026

    @AbdeMohlbi
    Member

    so the framework already have comments that mentions that :

    /// If your app targets Android SDK 15 (API 35), then your Flutter app uses [SystemUiMode.edgeToEdge] by default
    /// on Android. When in [SystemUiMode.edgeToEdge], [SystemUiOverlayStyle.statusBarColor] and
    /// [SystemUiOverlayStyle.systemNavigationBarColor] will not work unless the app opts out
    /// instructions found in
    /// https://docs.flutter.dev/release/breaking-changes/default-systemuimode-edge-to-edge.
    ///
    /// If your app targets Android SDK 16 (API 36) or later, then your Flutter app uses [SystemUiMode.edgeToEdge] by default
    /// on Android, and there is no way to opt out. This means [SystemUiOverlayStyle.statusBarColor] and
    /// [SystemUiOverlayStyle.systemNavigationBarColor] will not work.
    ///
    /// To imperatively set the style of the system overlays, use [SystemChrome.setSystemUIOverlayStyle].
    ///

    which in return calls :

    @Override
    public void setSystemUiOverlayStyle(
    @NonNull PlatformChannel.SystemChromeStyle systemUiOverlayStyle) {
    setSystemChromeSystemUIOverlayStyle(systemUiOverlayStyle);
    }

    that calls :

    /**
    * @deprecated This method is outdated because it calls {@code setStatusBarColor}, {@code
    * setNavigationBarColor} and {@code setNavigationBarDividerColor}, which are deprecated in
    * Android 15 and above, meaning calls to this method will have no effect on those versions.
    * Consider using the
    * [WindowInsetsController](https://developer.android.com/reference/android/view/WindowInsetsController)
    * or other Android 15+ APIs for system UI styling.
    */
    @Deprecated
    private void setSystemChromeSystemUIOverlayStyle(

    so both the framework and the engine mentions that , so i think this can be closed

  10. reidbaker commented on Jan 26, 2026

    @reidbaker
    ContributorAuthor

    Yes I agree this can be closed now that the documentation is in place.

  11. github-actions commented on Feb 9, 2026

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

  12. locked as resolved and limited conversation to collaborators on Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listplatform-androidAndroid applications specificallyteam-androidOwned by Android platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions