Kevin Eder
12/27/2022, 3:21 PMLazyColumn
. I was hoping someone here might have a tip.
Summary: I’d like to create a LazyColumn
where new items are appended to the bottom of the list. When a new item is added, the entire list should slide-up in unison to accommodate it. I’ve created a basic example with animateScrollToItem
in a LaunchedEffect
where the intended experience almost works, with one issue: the slide-up animation only occurs after the list fills up its available real estate. I think this makes sense because there is nothing to scroll to until the list is filled-up.
I’m able to remedy the problem by simply prepending a large empty Box
as the first item of my LazyColumn
, but this felt a bit odd. Any suggestions are welcome—thank you!Tin Tran
12/28/2022, 2:27 AManimateContentSize
in the LazyColumnGumiku
12/18/2023, 10:31 AMKevin Eder
12/18/2023, 1:45 PManimateContentSize
is pretty close to what I demoed. Sorry I can’t be of more help.