Skip to content

Commit

Permalink
Merge pull request #20 from 8cAyqpVKio/dev-modifier-arg
Browse files Browse the repository at this point in the history
feat(BreakChanges): add Modifier arg to Internal**ColumnScrollbar
  • Loading branch information
nanihadesuka committed Jul 15, 2023
2 parents 886b6ba + 252097e commit e091728
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/src/main/java/my/nanihadesuka/compose/ColumnScrollbar.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ fun ColumnScrollbar(
content()
InternalColumnScrollbar(
state = state,
modifier = Modifier,
rightSide = rightSide,
thickness = thickness,
padding = padding,
Expand Down Expand Up @@ -84,6 +85,7 @@ fun ColumnScrollbar(
@Composable
fun InternalColumnScrollbar(
state: ScrollState,
modifier: Modifier = Modifier,
rightSide: Boolean = true,
thickness: Dp = 6.dp,
padding: Dp = 8.dp,
Expand Down Expand Up @@ -188,7 +190,7 @@ fun InternalColumnScrollbar(
)

BoxWithConstraints(
Modifier
modifier = modifier
.alpha(alpha)
.fillMaxWidth()
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ fun LazyColumnScrollbar(
content()
InternalLazyColumnScrollbar(
listState = listState,
modifier = Modifier,
rightSide = rightSide,
thickness = thickness,
padding = padding,
Expand Down Expand Up @@ -96,6 +97,7 @@ fun LazyColumnScrollbar(
@Composable
fun InternalLazyColumnScrollbar(
listState: LazyListState,
modifier: Modifier = Modifier,
rightSide: Boolean = true,
thickness: Dp = 6.dp,
padding: Dp = 8.dp,
Expand Down Expand Up @@ -258,7 +260,7 @@ fun InternalLazyColumnScrollbar(
)

BoxWithConstraints(
Modifier
modifier = modifier
.alpha(alpha)
.fillMaxWidth()
) {
Expand Down

0 comments on commit e091728

Please sign in to comment.