Skip to content

Instantly share code, notes, and snippets.

@rubenquadros
Created August 19, 2021 17:28
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 rubenquadros/a872ab37f541e00d421a3da9ac3c0e41 to your computer and use it in GitHub Desktop.
Save rubenquadros/a872ab37f541e00d421a3da9ac3c0e41 to your computer and use it in GitHub Desktop.
Initial home screen
@Composable
fun HomeScreen(
openSearch: () -> Unit,
openFilters: () -> Unit,
homeViewModel: HomeViewModel = viewModel(),
) {
Scaffold(topBar = {
HomeAppBar(
title = "Epic World",
openSearch = openSearch,
openFilters = openFilters
)
},
content = { GameListing(homeViewModel.getAllGames()) }
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment