Created
September 6, 2021 10:11
-
-
Save lbenevento/bd731863ef8057be22b8d94a42500046 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun YourTheme( | |
darkTheme: Boolean = isSystemInDarkTheme(), | |
content: @Composable () -> Unit | |
) { | |
val systemUiController = rememberSystemUiController() | |
systemUiController.setStatusBarColor(Color.Transparent) | |
MaterialTheme( | |
content = content | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment