diff --git a/gradle.properties b/gradle.properties index 993e592..84fc5b4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=0.0.7 +version=0.0.8 org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 android.useAndroidX=true kotlin.code.style=official diff --git a/pagerindicator/src/main/java/mx/platacard/pagerindicator/PagerIndicator.kt b/pagerindicator/src/main/java/mx/platacard/pagerindicator/PagerIndicator.kt index ef1fa00..4f916ab 100644 --- a/pagerindicator/src/main/java/mx/platacard/pagerindicator/PagerIndicator.kt +++ b/pagerindicator/src/main/java/mx/platacard/pagerindicator/PagerIndicator.kt @@ -26,9 +26,9 @@ enum class PagerIndicatorOrientation { * A simple pager indicator that displays dots for each page in the pager. * * @param pagerState The [PagerState] that this indicator should represent. - * @param modifier Modifier to apply to the layout. * @param activeDotColor Color of the active dot. * @param dotColor Color of the inactive dots. + * @param modifier Modifier to apply to the layout. * @param dotCount Number of dots to display. * @param dotPainter Painter to use for drawing the dots. * @param normalDotSize Size of the inactive dots. @@ -40,9 +40,9 @@ enum class PagerIndicatorOrientation { @Composable fun PagerIndicator( pagerState: PagerState, - modifier: Modifier = Modifier, activeDotColor: Color, dotColor: Color, + modifier: Modifier = Modifier, dotCount: Int = 5, dotPainter: Painter = CirclePainter, normalDotSize: Dp = 6.dp, @@ -80,9 +80,9 @@ fun PagerIndicator( * * @param pageCount The number of pages in the pager. * @param currentPageFraction A lambda that returns the fraction [0, pageCount] of the current page based on the scrolling position - * @param modifier Modifier to apply to the layout. * @param activeDotColor Color of the active dot. * @param dotColor Color of the inactive dots. + * @param modifier Modifier to apply to the layout. * @param dotCount Number of dots to display. * @param dotPainter Painter to use for drawing the dots. * @param normalDotSize Size of the inactive dots. diff --git a/pagerindicator/src/main/java/mx/platacard/pagerindicator/PagerWormIndicator.kt b/pagerindicator/src/main/java/mx/platacard/pagerindicator/PagerWormIndicator.kt index 9244c97..12e49c0 100644 --- a/pagerindicator/src/main/java/mx/platacard/pagerindicator/PagerWormIndicator.kt +++ b/pagerindicator/src/main/java/mx/platacard/pagerindicator/PagerWormIndicator.kt @@ -25,9 +25,9 @@ import mx.platacard.pagerindicator.internal.wormLinePosAsState * The transition between pages is animated in the style of a worm. * * @param pagerState The [PagerState] that this indicator should represent. - * @param modifier Modifier to apply to the layout. * @param activeDotColor Color of the active dot. * @param dotColor Color of the inactive dots. + * @param modifier Modifier to apply to the layout. * @param dotCount Number of dots to display. * @param activeDotSize Size of the active dot. * @param minDotSize Size of the dot displayed on the edge @@ -37,13 +37,13 @@ import mx.platacard.pagerindicator.internal.wormLinePosAsState @Composable fun PagerWormIndicator( pagerState: PagerState, + activeDotColor: Color, + dotColor: Color, modifier: Modifier = Modifier, activeDotSize: Dp = 8.dp, minDotSize: Dp = 4.dp, space: Dp = 8.dp, dotCount: Int = 5, - activeDotColor: Color, - dotColor: Color, orientation: PagerIndicatorOrientation = Horizontal, ) { @@ -74,9 +74,9 @@ fun PagerWormIndicator( * * @param pageCount The total number of pages in the pager. * @param currentPageFraction The fraction of the current page. - * @param modifier Modifier to apply to the layout. * @param activeDotColor Color of the active dot. * @param dotColor Color of the inactive dots. + * @param modifier Modifier to apply to the layout. * @param dotCount Number of dots to display. * @param activeDotSize Size of the active dot. * @param minDotSize Size of the dot displayed on the edge @@ -88,13 +88,13 @@ fun PagerWormIndicator( fun PagerWormIndicator( pageCount: Int, currentPageFraction: State, + activeDotColor: Color, + dotColor: Color, modifier: Modifier = Modifier, activeDotSize: Dp = 8.dp, minDotSize: Dp = 4.dp, space: Dp = 8.dp, dotCount: Int = 5, - activeDotColor: Color, - dotColor: Color, orientation: PagerIndicatorOrientation = Horizontal, onDotClick: (Int) -> Unit = {}, ) {