Skip to content

Instantly share code, notes, and snippets.

@ibrajix
Last active July 6, 2022 15:33
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 ibrajix/aef71273b3b000e9100a839195c0e185 to your computer and use it in GitHub Desktop.
Save ibrajix/aef71273b3b000e9100a839195c0e185 to your computer and use it in GitHub Desktop.
HomeScreen
@Destination(style = StartScreenTransitionAnimation::class)
@Composable
fun HomeScreen(
navigator: DestinationsNavigator,
albumDatabaseViewModel: AlbumDatabaseViewModel = hiltViewModel()
){
.............// Check full code for other variables
HomeScreenItems(navigator = navigator, albums = albums.value,
onCardClicked = {
shouldOpenAlbumDetails = true
albumUrl = it
},
onPopularAlbumClicked = {
shouldOpenTrendingAlbums = true
}
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment