Last active
July 6, 2022 15:33
-
-
Save ibrajix/aef71273b3b000e9100a839195c0e185 to your computer and use it in GitHub Desktop.
HomeScreen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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