that’s being continuously updated with new items at the bottom, how do I keep the scroll locked at the bottom?
m
maciejciemiega
11/20/2021, 7:28 PM
I haven't tried that but how about setting new scroll position (
scrollToItem()
?) on `LazyListState`when new items are added?
m
Mitchell Syer
11/20/2021, 7:30 PM
There is a reverseLayout parameter for
LazyColumn
, so maybe that will change the alignment of the it scroll position.
s
spierce7
11/21/2021, 7:46 PM
it throws me off that the scroll functions are all
suspend
m
maciejciemiega
11/21/2021, 8:00 PM
I guess you can just have a LaunchedEffect with items as key, so whenever they change you scroll to the bottom?
👍 1
z
Zach Klippenstein (he/him) [MOD]
11/22/2021, 4:21 PM
I think this is what the reverseLayout parameter is for. You'd also need to reverse the order of your list but that's probably easier than hacking the scrolling behavior.