PickerSelectionIndicator

data class PickerSelectionIndicator(val color: Color, val thickness: Dp, val shape: Shape, val horizontalInset: Dp, val isVisible: Boolean, val disabledColor: Color = color.copy(alpha = color.alpha * DISABLED_CONTAINER_ALPHA))

Describes the single selection band drawn by composite pickers (e.g. io.github.kezlab.compose.pickers.time.TimePicker, io.github.kezlab.compose.pickers.date.DatePicker).

The band spans the whole picker width (minus horizontalInset on each side) and stays centered, so the selection lines stay aligned regardless of per-column widths and column spacing.

Parameters

color

The color of the band lines.

thickness

The thickness of each band line. Must be finite and non-negative.

shape

The shape of each band line.

horizontalInset

The inset applied to each side of the band. Must be finite and non-negative.

isVisible

Whether the band is drawn.

disabledColor

The color of the band lines when the composite picker is disabled.

See also

Constructors

Link copied to clipboard
constructor(color: Color, thickness: Dp, shape: Shape, horizontalInset: Dp, isVisible: Boolean, disabledColor: Color = color.copy(alpha = color.alpha * DISABLED_CONTAINER_ALPHA))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard