Skip to content

Commit

Permalink
Merge pull request #27 from skydoves/draghandle/verticalpadding
Browse files Browse the repository at this point in the history
Add vertical padding parameter to DragHandle Composable
  • Loading branch information
skydoves committed Apr 23, 2024
2 parents f47cbbb + 4021422 commit 1c0e68f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
public final class com/skydoves/flexible/bottomsheet/material/BottomSheetDefaults {
public static final field $stable I
public static final field INSTANCE Lcom/skydoves/flexible/bottomsheet/material/BottomSheetDefaults;
public final fun DragHandle-lgZ2HuY (Landroidx/compose/ui/Modifier;FFLandroidx/compose/ui/graphics/Shape;JLandroidx/compose/runtime/Composer;II)V
public final fun DragHandle-uZkctBo (Landroidx/compose/ui/Modifier;FFLandroidx/compose/ui/graphics/Shape;FJLandroidx/compose/runtime/Composer;II)V
public final fun getContainerColor (Landroidx/compose/runtime/Composer;I)J
public final fun getElevation-D9Ej5fM ()F
public final fun getFullyExpandedShape (Landroidx/compose/runtime/Composer;I)Landroidx/compose/ui/graphics/Shape;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
public final class com/skydoves/flexible/bottomsheet/material/BottomSheetDefaults {
public static final field $stable I
public static final field INSTANCE Lcom/skydoves/flexible/bottomsheet/material/BottomSheetDefaults;
public final fun DragHandle-lgZ2HuY (Landroidx/compose/ui/Modifier;FFLandroidx/compose/ui/graphics/Shape;JLandroidx/compose/runtime/Composer;II)V
public final fun DragHandle-uZkctBo (Landroidx/compose/ui/Modifier;FFLandroidx/compose/ui/graphics/Shape;FJLandroidx/compose/runtime/Composer;II)V
public final fun getContainerColor (Landroidx/compose/runtime/Composer;I)J
public final fun getElevation-D9Ej5fM ()F
public final fun getFullyExpandedShape (Landroidx/compose/runtime/Composer;I)Landroidx/compose/ui/graphics/Shape;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ public object BottomSheetDefaults {
width: Dp = SheetBottomTokens.DockedDragHandleWidth,
height: Dp = SheetBottomTokens.DockedDragHandleHeight,
shape: Shape = RoundedCornerShape(28.0.dp),
verticalPadding: Dp = DragHandleVerticalPadding,
color: Color = MaterialTheme.colors.secondaryVariant
.copy(SheetBottomTokens.DockedDragHandleOpacity),
) {
Surface(
modifier = modifier
.padding(vertical = DragHandleVerticalPadding)
.padding(vertical = verticalPadding)
.semantics { contentDescription = "DragHandle" },
color = color,
shape = shape,
Expand Down

0 comments on commit 1c0e68f

Please sign in to comment.