Skip to content

Light status bar with dark icons #17231

Closed

Description

@hvkale

This is not really an issue but a question about how to do it in flutter.
I asked this question on SO but didn't get any answers.
https://stackoverflow.com/questions/49179175/how-to-make-android-status-bar-light-in-flutter

I want to change the status bar to light on Android which automatically turns icons dark. This was introduced in Android v23 with <item name="android:windowLightStatusBar">true</item>.

Please note that my question is NOT about changing status bar color or about removing translucency. I know how to do all that. I just want to change the color of icons which in Android is possible with windowLightStatusBar property.

Check image below for reference.

xnvg8

Activity

  1. jonahwilliams commented on May 3, 2018

    @jonahwilliams
    Contributor

    Hi @kalehv, right now flutter doesn't expose the necessary API to configure the status bar or other parts of the system chrome for Android. I'm working on a PR to add the low level functionality in the engine here: #17171 - this should be done fairly soon!

    After that I'll also need to update the framework and make a breaking change to the AppBar so that the low level API is useable - this will take a bit longer.

  2. hvkale commented on May 3, 2018

    @hvkale
    Author

    Thank you @jonahwilliams for the update.
    Please link this PR with your original one so that this one gets an update. Appreciate it.

  3. zoechi commented on Jul 26, 2018

    @zoechi
    Contributor

    I assume this was fixed by #17171

  4. miikaeru commented on Jun 6, 2020

    @miikaeru

    During launch in splash screen the status and navigation bar still can't be set to the light mode. Changing the appearance after the splash screen is not desirable and interrupts the user experience. Why is it not possible to change the mode with <item name="android:windowLightStatusBar">true</item> in the main activtiy?

  5. Mhamza007 commented on Jul 15, 2020

    @Mhamza007

    For making status bar transparent. In main.dart add

    Future<void> main() async { SystemChrome.setSystemUIOverlayStyle( SystemUiOverlayStyle( statusBarColor: Colors.transparent, ), ); ... }

    Then in appbar add this
    return AppBar( brightness: Brightness.light, ... )

    Hope it helps

  6. github-actions commented on Aug 18, 2021

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

  7. locked as resolved and limited conversation to collaborators on Aug 18, 2021
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions