Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Last active January 11, 2021 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Skyyo/ceddda7ab29992bf468b06fdad846bad to your computer and use it in GitHub Desktop.
Save Skyyo/ceddda7ab29992bf468b06fdad846bad to your computer and use it in GitHub Desktop.
class MainActivity : AppCompatActivity() {
private val cardsViewModel by viewModels<CardsViewModel>()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
AppTheme {
Surface(color = MaterialTheme.colors.background) { CardsScreen(cardsViewModel) }
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment