object VerticalDragHandleDefaults
Contains the baseline values used by a VerticalDragHandle.
Functions
@Composable fun colors(): DragHandleColors
Creates a DragHandleColors that represents the default, pressed, and dragged colors used in a VerticalDragHandle.
colors
@Composable
fun colors(
color: Color = Color.Unspecified,
pressedColor: Color = Color.Unspecified,
draggedColor: Color = Color.Unspecified,
): DragHandleColors
Creates a DragHandleColors that represents the default, pressed, and dragged colors used in a VerticalDragHandle.
Parameters
| color | provides a different color to override the default color of the drag handle when it's not being pressed. |
| pressedColor | provides a different color to override the color of the drag handle when it's being pressed but not dragged. |
| draggedColor | provides a different color to override the color of the drag handle when it's being dragged. |
@Composable fun shapes(): DragHandleShapes
Creates a DragHandleShapes that represents the default, pressed, and dragged shapes used in a VerticalDragHandle.
shapes
@Composable
fun shapes(
shape: Shape? = null,
pressedShape: Shape? = null,
draggedShape: Shape? = null,
): DragHandleShapes
Creates a DragHandleShapes that represents the default, pressed, and dragged shapes used in a VerticalDragHandle.
Parameters
| shape | provides a different shape to override the default shape of the drag handle when it's not being pressed. |
| pressedShape | provides a different shape to override the shape of the drag handle when it's being pressed but not dragged. |
| draggedShape | provides a different shape to override the shape of the drag handle when it's being dragged. |
Overload 3
fun (): DragHandleSizes
Creates a DragHandleSizes that represents the default, pressed, and dragged sizes used in a VerticalDragHandle.
sizes
fun sizes(
size: DpSize = DpSize.Unspecified,
pressedSize: DpSize = DpSize.Unspecified,
draggedSize: DpSize = DpSize.Unspecified,
): DragHandleSizes
Creates a DragHandleSizes that represents the default, pressed, and dragged sizes used in a VerticalDragHandle.
Parameters
| size | provides a different size to override the default size of the drag handle when it's not being pressed. |
| pressedSize | provides a different size to override the size of the drag handle when it's being pressed but not dragged. |
| draggedSize | provides a different size to override the size of the drag handle when it's being dragged. |