Is there any way to retrieve if the current sticky...
# compose
r
Is there any way to retrieve if the current sticky header is actually sticky in LazyColumn?
s
I did this in one of my apps by checking the sticky header's position relative to the parent (the lazy list)
I used
onGloballyPositioned
, but I'm not sure if it's the best way? I use
onPlaced
nowadays but I'm not sure if that works within lazy lists / scrollable containers.
Also make sure to check that it's between
-height
to
0
, to account for when it's being pushed by another sticky header.