https://kotlinlang.org logo
Title
u

user

07/23/2022, 5:41 PM
How to have multiple custom themes in jetpack compose? My current code is as follows: @Composable fun AppTheme(darkTheme: Boolean = false, content: @Composable() () -> Unit) { val colors = if (darkTheme) DarkThemeColors else LightThemeColors MaterialTheme( colors = colors, typography = MaterialTheme.typography, shapes = MaterialTheme.shapes, ) { content() } } which im calling in main activity like that: @Inject lateinit var application: WeatherApplication override fun...