Anyone know of an efficient way to make all items ...
# compose
j
Anyone know of an efficient way to make all items in HorizontalPager the same height as the tallest item? I've tried onSizeChanged{} and onGloballyPositioned{} but neither is working as expected
z
It’s lazy right? So not possible.
a
Best you can do is take largest visible size item and just have it grow larger whenever it encounters a larger page otherwise don’t shrink
👍 1
Better than having the first page be super large with lot of white space especially if it’s within a vertical container
z
Or make a non-lazy pager if you’ve only got a few simple/cheap items and don’t need laziness.
j
Thanks! It's definitely going to be a huge list of items so non-lazy isn't an option but I'll look into the visible item size option!