Created
September 4, 2021 16:26
-
-
Save rubenquadros/6f6c8a9a495ee8108742c7a2f996b2b5 to your computer and use it in GitHub Desktop.
Final video 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>, | |
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