Created
September 4, 2021 14:37
-
-
Save rubenquadros/ff5ce3c8ec6194733482b3f24bcce02a to your computer and use it in GitHub Desktop.
Show all videos in a playlist
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
@Composable | |
fun VideoPlayList( | |
modifier: Modifier = Modifier, | |
gameVideos: List<VideoResultEntity> | |
) { | |
LazyColumn(modifier = modifier) { | |
itemsIndexed( | |
items = gameVideos, | |
key = { _, item -> item.id } | |
) { index, item -> | |
VideoItem(index = index, video = item) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment