Is it possible to specify a LazyList to be the size of its largest child? When using a LazyRow with different item heights, the height is always that of the largest currently visible item - scrolling past a large item will jump the entire UI due to the LazyLists height being reduced.
c
Csaba Szugyiczki
10/11/2021, 10:55 AM
I think it is impossible without drawing each child, which makes no sense with a LazyList
Csaba Szugyiczki
10/11/2021, 10:57 AM
You could watch height changes and set the largest height as the minHeight of the List, this way it would expand if a bigger item is drawn, but not shrink when the large item leaves the list
👍 1
z
Zoltan Demant
10/11/2021, 12:12 PM
Thanks, thats what I ended up doing! 💪🏽
i
Igor Maineti
11/15/2021, 9:00 PM
Hello guys, I'm facing this exact same problem and I don't exactly know how to do what Csabe said, could you guys paste a link with a similar code? 🤔