Is there any half decent way to get HorizontalPage...
# compose
m
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
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)
m
I think i see that now: beyondBoundsPageCount
👍 1