So, a coding style question. Where do you folks t...
# compose
m
So, a coding style question. Where do you folks tend to put your call to the theme function? I’m wrestling with it, and for now have decided it goes into the “setContent” block:
Copy code
setContent {
   MaterialTheme {
     MainActivityScreen()
   }
}
I debated putting it in MainActivityScreen, but i have an alternate theme function for activities which uses Accompanist to set the status bar color appropriately, so I don’t necessarily want my content having to care if it’s another composeable, a fragment or an activity.