Anastasia Rozovskaya
08/17/2021, 10:13 AMmodifier = Modifier(background = AppTheme.colors.background)
but in dark theme it shows background color for light theme.
Here is a theme implementation
AppColors.kt
https://gist.github.com/llama-0/9b92e8eed30fe65bbdc3b47bf57a1a49
AppTypography.kt
https://gist.github.com/llama-0/99f58df22ae9dbb8adb55dea410136c0
AppTheme.kt
https://gist.github.com/llama-0/4c65f4aa7fdccf8b35ca089f6b30fac1
Any thoughts?AppTheme {}
? Is there a better solution ( like in old days you just put style/Theme.AppTheme
in AndroidManifest.xml
) ?georgiy.shur
08/17/2021, 10:45 AMAppTheme
, otherwise the composables won’t know which instance to provide via local composition. But if you’re not using any interop or fragments, it should be enough to use it just once in your root composable.Anastasia Rozovskaya
08/17/2021, 11:19 AM