Horizontal Pager Indicator
An horizontally laid out indicator for a HorizontalPager or VerticalPager, representing the currently active page and total pages drawn using a Shape.
This element allows the setting of the indicatorShape, which defines how the indicator is visually represented.
Samples
com.google.accompanist.sample.pager.HorizontalPagerIndicatorSampleParameters
the state object of your Pager to be used to observe the list's state.
the modifier to apply to this layout.
the size of indicators should be displayed, defaults to PagerState.pageCount. If you are implementing a looping pager with a much larger PagerState.pageCount than indicators should displayed, e.g. Int.MAX_VALUE, specify you real size in this param.
describe how to get the position of active indicator by the giving page from PagerState.currentPage, if pageCount is not equals to PagerState.pageCount.
the color of the active Page indicator
the color of page indicators that are inactive. This defaults to activeColor with the alpha component set to the ContentAlpha.disabled.
the width of each indicator in Dp.
the height of each indicator in Dp. Defaults to indicatorWidth.
the spacing between each indicator in Dp.
the shape representing each indicator. This defaults to CircleShape.