kotlinandroid-jetpack-compose

how to change statusbar color in jetpack compose?


how to make status bar color transparent in compose like here:

enter image description here

it has the same color but with a little bit shade.


Solution

  • Google has just created a library called accompanist.
    You can find it here: https://github.com/google/accompanist

    It contains multiple helpful libraries for Jetpack Compose, among which is a System UI Controller that you can use for changing the status bar color.

    Docs - https://google.github.io/accompanist/systemuicontroller/