Should I be wrapping everything compose related in
Copy code
AppTheme {}
? Is there a better solution ( like in old days you just put
style/Theme.AppTheme
in
AndroidManifest.xml
) ?
g
georgiy.shur
08/17/2021, 10:45 AM
You should wrap it with
AppTheme
, 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.
a
Anastasia Rozovskaya
08/17/2021, 11:19 AM
Unfortunately, I use fragments too.
Thanks for sharing your knowledge, Georgiy.