Is it possible to set a height dynamically on a LazyRow based the largest child it will display?
c
Is it possible to set a height dynamically on a LazyRow based the largest child it will display?
I’m missing something here, I’m pretty sure there was a property that allowed you to mess with the sizing of things
Something with constraints
c
With Lazy* you inherently can't do that because you would need to measure all items before hand to find the largest one. If it's a small set of data then just use the nonLazy version and use instrinsics. I do this in a few cases where i have a horizontal scrollable for like 6 items max and it works well in prod
c
Yeah I think that might be the approach we take also. We just need to make our image loading play nice with window visibility I guess.
830 Views