https://kotlinlang.org logo
Title
m

Marko Novakovic

08/14/2022, 9:44 AM
what is Compose equivalent of
LayoutManager.findFirstCompletelyVisibleItemPosition()
?
v

Valentin Gusselnikov

08/14/2022, 10:38 AM
Did you look into the state of Lazy(Column/Row)? There's
layoutInfo.visibleItemsInfo
https://stackoverflow.com/a/72415822
m

Marko Novakovic

08/14/2022, 10:40 AM
I tried to implement something similar myself but it didn’t work. this what you linked looks different, let me try it. thank you
this solves my problem but creates another
on small screen, when each item is too big to be fully shown, it doesn’t work. but I will make it work
thank you
I made it work, nice
c

Colton Idle

08/14/2022, 5:11 PM
I had some issues using visibleItemsInfo. Just as a heads up you can check out this thread for more info. https://kotlinlang.slack.com/archives/CJLTWPH7S/p1656979384117339
m

Marko Novakovic

08/15/2022, 8:09 AM
I will for sure, thank you