Lukasz Kalnik
02/25/2025, 8:49 AMHorizontalPager
containing `Card`s with Text
. The text inside has varying number of lines. How can I adjust the height of all `Card`s to the highest one (with the longest text), so that the size doesn't jump while swiping?Chrimaeon
02/25/2025, 9:11 AMLukasz Kalnik
02/25/2025, 9:11 AMLeo N
04/04/2025, 7:07 AMadjust the height of all Cards to the highest one
, we need to measure the “real” high when they are visible in screen. I believe there are a few solutions out there, but let assume you have a HorizontalPager
and there is only 1 item display 1 time only, we can use this option:
beyondBoundsPageCount
, it will tell HorizontalPager
load more pages offscreen