I have a LazyColumn where items can change height....
# compose
l
I have a LazyColumn where items can change height. Is there a way to allow it to auto-scroll if the height of the bottom item changes when the user is scrolled all the way down? If the user is scrolled somewhere else, I want it to stay where they are.
s
You can try doing something like
scrollToItem(Int.MAX_VALUE)
or similar if
canScrollForward
is true on the state
l
Is it possible to have it do this scrolling as the size changes, or do I have to run this manually at various times?
s
You'll have to observe it and scroll in effect or similar place
140 Views