Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Final video playlist
@Composable
fun VideoPlayList(
modifier: Modifier = Modifier,
gameVideos: List<VideoResultEntity>,
currentPlaying: State<Int>,
onVideoChange: (Int) -> Unit
) {
LazyColumn(modifier = modifier) {
itemsIndexed(
items = gameVideos,
key = { _, item -> item.id }
) { index, item ->
VideoItem(
index = index,
video = item,
currentPlaying = currentPlaying,
onVideoChange = onVideoChange
)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment