Skip to content

Instantly share code, notes, and snippets.

View giorgospat's full-sized avatar

Giorgos Patronas giorgospat

View GitHub Profile
@giorgospat
giorgospat / EndlessLazyColumn.kt
Created November 13, 2023 22:36
Jetpack Compose component for endless vertical list
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier