Object

VerticalDragHandleDefaults

Contains the baseline values used by a VerticalDragHandle.

Source set: Common
public object VerticalDragHandleDefaults

Contains the baseline values used by a VerticalDragHandle.

Functions

colors

Source set: Common
@Composable public fun colors(): DragHandleColors

Creates a DragHandleColors that represents the default, pressed, and dragged colors used in a VerticalDragHandle.

colors

Source set: Common
@Composable
    public 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.

shapes

Source set: Common
@Composable public fun shapes(): DragHandleShapes

Creates a DragHandleShapes that represents the default, pressed, and dragged shapes used in a VerticalDragHandle.

shapes

Source set: Common
@Composable
    public 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.

sizes

Source set: Common
public fun sizes(): DragHandleSizes

Creates a DragHandleSizes that represents the default, pressed, and dragged sizes used in a VerticalDragHandle.

sizes

Source set: Common
public 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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: