Is it possible to specify a LazyList to be the siz...
# compose
z
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
I think it is impossible without drawing each child, which makes no sense with a LazyList
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
Thanks, thats what I ended up doing! 💪🏽
i
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? 🤔
d
Is this still the best solution for this problem?