I would like to mimic the liftOnScroll capability ...
# compose
h
I would like to mimic the liftOnScroll capability of AppBarLayout and therefore have to observe the scroll offset of a LazyColumn. Unfortunately I can’t find a way to do so. Is this something missing at the moment?
s
I had played around with lazylist state. Here's my code if that's interest you: https://github.com/subashz/ComposeCookBook/blob/fa9c2a55271899925dd2978d24c681a26597e9f4/app/src/main/java/com/guru/composecookbook/ui/demoui/gmail/home/GmailHome.kt#L119. I think you can use firstVisibleItemIndex & firstVisibleItemScrollOffset, to achieve that result.
👍 1
h
Thanks! Exactly what I was looking for!