Is there any half decent way to get HorizontalPager to measure it’s children ahead of time so that it can size itself to the max child size? I get why it is the way it is (because it’s essentially a LazyRow). Just looking for a half decent solution. All i can really do right now:
• wrapContentSize, which changes the pager size as you swipe around,
• fixed Size
• fill available space in a column (ie, Modifier.fill(1.0f, true))
s
Stylianos Gakis
04/19/2024, 8:07 PM
Iirc there was a parameter where you could say how many of them to render which are outside of the current viewport. If you got a non-crazy number of items perhaps you could just make all of them render all the time, effectively making it not a lazy row (in a way)