VerticalPagerIndicator

@Composable
fun VerticalPagerIndicator(pagerState: PagerState, modifier: Modifier = Modifier, activeColor: Color = LocalContentColor.current.copy(alpha = LocalContentAlpha.current), inactiveColor: Color = activeColor.copy(ContentAlpha.disabled), indicatorHeight: Dp = 8.dp, indicatorWidth: Dp = indicatorHeight, spacing: Dp = indicatorHeight, indicatorShape: Shape = CircleShape)

An vertically laid out indicator for a VerticalPager or HorizontalPager, 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.VerticalPagerIndicatorSample

Parameters

pagerState

the state object of your Pager to be used to observe the list's state.

modifier

the modifier to apply to this layout.

activeColor

the color of the active Page indicator

inactiveColor

the color of page indicators that are inactive. This defaults to activeColor with the alpha component set to the ContentAlpha.disabled.

indicatorHeight

the height of each indicator in Dp.

indicatorWidth

the width of each indicator in Dp. Defaults to indicatorHeight.

spacing

the spacing between each indicator in Dp.

indicatorShape

the shape representing each indicator. This defaults to CircleShape.