Package 

Class PagerWormIndicatorKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit PagerWormIndicator(PagerState pagerState, Color activeDotColor, Color dotColor, Modifier modifier, Dp activeDotSize, Dp minDotSize, Dp space, Integer dotCount, PagerIndicatorOrientation orientation) A simple pager indicator that displays dots for each page in the pager.
      final static Unit PagerWormIndicator(Integer pageCount, State<Float> currentPageFraction, Color activeDotColor, Color dotColor, Modifier modifier, Dp activeDotSize, Dp minDotSize, Dp space, Integer dotCount, PagerIndicatorOrientation orientation, Function1<Integer, Unit> onDotClick) A simple pager indicator that displays dots for each page in the pager.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • PagerWormIndicator

        @Composable() final static Unit PagerWormIndicator(PagerState pagerState, Color activeDotColor, Color dotColor, Modifier modifier, Dp activeDotSize, Dp minDotSize, Dp space, Integer dotCount, PagerIndicatorOrientation orientation)

        A simple pager indicator that displays dots for each page in the pager. The transition between pages is animated in the style of a worm.

        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.
        activeDotSize - Size of the active dot.
        minDotSize - Size of the dot displayed on the edge
        space - Space between the dots.
        dotCount - Number of dots to display.
        orientation - Orientation of the pager.
      • PagerWormIndicator

        @Composable() final static Unit PagerWormIndicator(Integer pageCount, State<Float> currentPageFraction, Color activeDotColor, Color dotColor, Modifier modifier, Dp activeDotSize, Dp minDotSize, Dp space, Integer dotCount, PagerIndicatorOrientation orientation, Function1<Integer, Unit> onDotClick)

        A simple pager indicator that displays dots for each page in the pager. The transition between pages is animated in the style of a worm.

        Parameters:
        pageCount - The total number of pages in the pager.
        currentPageFraction - The fraction of the current page.
        activeDotColor - Color of the active dot.
        dotColor - Color of the inactive dots.
        modifier - Modifier to apply to the layout.
        activeDotSize - Size of the active dot.
        minDotSize - Size of the dot displayed on the edge
        space - Space between the dots.
        dotCount - Number of dots to display.
        orientation - Orientation of the pager.
        onDotClick - Callback when a dot is clicked.