<How to dynamically add pages to HorizontalPager i...
# stackoverflow
r
How to dynamically add pages to HorizontalPager in jetpack compose based on its size and size of its children I have a simple list of items that have two string values title and subtitle. This items should be displayed in a horizontal pager. Pager height is always limited and not always the same. The list of items should be automatically divided into pages depending on their height and available height of the pager. For example, if I have 10 items and there can only be placed first 3 items on one page, then add new page and place next items. The Page composable looks like this: @Composable fun...