-
public final class PagerIndicatorKt
-
-
Method Summary
Modifier and Type Method Description final static UnitPagerIndicator(PagerState pagerState, Color activeDotColor, Color dotColor, Modifier modifier, Integer dotCount, Painter dotPainter, Dp normalDotSize, Dp activeDotSize, Dp minDotSize, Dp space, PagerIndicatorOrientation orientation)A simple pager indicator that displays dots for each page in the pager. final static UnitPagerIndicator(Integer pageCount, State<Float> currentPageFraction, Color activeDotColor, Color dotColor, Modifier modifier, Painter dotPainter, Integer dotCount, Dp normalDotSize, Dp activeDotSize, Dp minDotSize, Dp space, PagerIndicatorOrientation orientation, Function1<Integer, Unit> onDotClick)A simple pager indicator that displays dots for each page in the pager. -
-
Method Detail
-
PagerIndicator
@Composable() final static Unit PagerIndicator(PagerState pagerState, Color activeDotColor, Color dotColor, Modifier modifier, Integer dotCount, Painter dotPainter, Dp normalDotSize, Dp activeDotSize, Dp minDotSize, Dp space, PagerIndicatorOrientation orientation)
A simple pager indicator that displays dots for each page in the pager.
- Parameters:
pagerState- The PagerState that this indicator should represent.activeDotColor- Color of the active dot.dotColor- Color of the inactive dots.modifier- Modifier to apply to the layout.dotCount- Number of dots to display.dotPainter- Painter to use for drawing the dots.normalDotSize- Size of the inactive dots.activeDotSize- Size of the active dot.minDotSize- Size of the dot displayed on the edgespace- Space between the dots.orientation- Orientation of the pager.
-
PagerIndicator
@Composable() final static Unit PagerIndicator(Integer pageCount, State<Float> currentPageFraction, Color activeDotColor, Color dotColor, Modifier modifier, Painter dotPainter, Integer dotCount, Dp normalDotSize, Dp activeDotSize, Dp minDotSize, Dp space, PagerIndicatorOrientation orientation, Function1<Integer, Unit> onDotClick)
A simple pager indicator that displays dots for each page in the pager.
- Parameters:
pageCount- The number of pages in the pager.currentPageFraction- A lambda that returns the fraction 0, pageCount of the current page based on the scrolling positionactiveDotColor- Color of the active dot.dotColor- Color of the inactive dots.modifier- Modifier to apply to the layout.dotPainter- Painter to use for drawing the dots.dotCount- Number of dots to display.normalDotSize- Size of the inactive dots.activeDotSize- Size of the active dot.minDotSize- Size of the dot displayed on the edgespace- Space between the dots.orientation- Orientation of the pager.onDotClick- Lambda that is called when a dot is clicked.
-
-
-
-