Skip to content

Commit

Permalink
fix parameters order
Browse files Browse the repository at this point in the history
  • Loading branch information
shpasha committed Nov 11, 2024
1 parent a8d65e4 commit 47d9867
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
) {

Expand Down Expand Up @@ -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
Expand All @@ -88,13 +88,13 @@ fun PagerWormIndicator(
fun PagerWormIndicator(
pageCount: Int,
currentPageFraction: State<Float>,
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 = {},
) {
Expand Down

0 comments on commit 47d9867

Please # to comment.