Horizontal Pager
A horizontally scrolling layout that allows users to flip between items to the left and right.
Samples
Parameters
the number of pages.
the modifier to apply to this layout.
the state object to be used to control or observe the pager's state.
reverse the direction of scrolling and layout, when true items will be composed from the end to the start and PagerState.currentPage == 0 will mean the first item is located at the end.
horizontal spacing to add between items.
logic describing fling behavior.
the scroll position will be maintained based on the key, which means if you add/remove items before the current visible item the item with the given key will be kept as the first visible one.
whether the scrolling via the user gestures or accessibility actions is allowed. You can still scroll programmatically using the state even when it is disabled.
a block which describes the content. Inside this block you can reference PagerScope.currentPage and other properties in PagerScope.