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
visible Items Count
The number of items visible at once. Must be a positive odd number.
colors
The colors used by the picker.
text Styles
The text styles used by the picker.
selected Item Background Shape
The shape of the selected item background.
item Padding
The padding around each item.
fading Edge Gradient
The gradient used for fading edges.
horizontal Alignment
The horizontal alignment of items.
divider Thickness
The thickness of the selection dividers.
divider Shape
The shape of the selection dividers.
divider Width
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.
is Divider Visible
Whether selection dividers are visible.