Join Slack
Is there a way to implement paginated list in compose with flows instead of using mutableStateListOf...
# compose
a
Ashu
02/19/2023, 10:47 AM
Is there a way to implement paginated list in compose with flows instead of using mutableStateListOf()?
z
zt
02/19/2023, 6:27 PM
Yes. You can use androidx paging library with the compose module to create flows that you can then observe in a lazy column.
https://developer.android.com/jetpack/androidx/releases/paging
a
Ashu
02/20/2023, 5:39 AM
Yes, that I know of, but I was thinking more like android independent way so that it can be used in KMM.
s
Stylianos Gakis
02/20/2023, 6:47 AM
It’s your lucky day
https://code.cash.app/announcing-multiplatform-paging
https://github.com/cashapp/multiplatform-paging
62
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by