what is Compose equivalent of `LayoutManager.findF...
# compose
m
what is Compose equivalent of
LayoutManager.findFirstCompletelyVisibleItemPosition()
?
v
Did you look into the state of Lazy(Column/Row)? There's
layoutInfo.visibleItemsInfo
https://stackoverflow.com/a/72415822
m
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
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
I will for sure, thank you