style

fun style(visibleItemsCount: Int = VisibleItemsCount, colors: PickerColors = PickerDefaults.colors(), textStyles: PickerTextStyles = PickerDefaults.textStyles(), selectedItemBackgroundShape: Shape = SelectedItemBackgroundShape, itemPadding: PaddingValues = ItemPadding, fadingEdgeGradient: Brush = fadingEdgeGradient(), horizontalAlignment: Alignment.Horizontal = Alignment.CenterHorizontally, dividerThickness: Dp = DividerThickness, dividerShape: Shape = DividerShape, dividerWidth: PickerDividerWidth = DividerWidth, isDividerVisible: Boolean = true): PickerStyle

Creates a PickerStyle that groups picker visual and layout styling.

Return

A PickerStyle instance with the specified styling.

Parameters

visibleItemsCount

The number of items visible at once. Must be a positive odd number.

colors

The colors used by the picker.

textStyles

The text styles used by the picker.

selectedItemBackgroundShape

The shape of the selected item background.

itemPadding

The padding around each item.

fadingEdgeGradient

The gradient used for fading edges.

horizontalAlignment

The horizontal alignment of items.

dividerThickness

The thickness of the selection dividers.

dividerShape

The shape of the selection dividers.

dividerWidth

The width of the selection dividers. Use PickerDividerWidth.Fill for the full column width, PickerDividerWidth.Fraction for a fraction of it, or PickerDividerWidth.Fixed for an absolute width.

isDividerVisible

Whether selection dividers are visible.