Socheat KHAUV
10/08/2020, 9:59 AMGabriel
10/08/2020, 10:46 AM@Composable
fun ImageListColumn(
items: List<ImageItem>,
fetchNextDataPage: () -> Unit
) {
val lastIndex = items.lastIndex
LazyColumnForIndexed(items = items, contentPadding = PaddingValues(5.dp)) { index, item ->
if (lastIndex == index) {
onActive {
fetchNextDataPage()
}
}
ImageItem(item)
}
}
this might give you a starting pointAndrey Kulikov
10/08/2020, 10:47 AMGabriel
10/08/2020, 10:56 AM