Skip to content

Instantly share code, notes, and snippets.

@rubenquadros
Created September 4, 2021 14:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Show all videos in a playlist
@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