Compose Component

PickerGroup

A group of Pickers to build components where multiple pickers are required to be combined together.

PickerGroup

Source set: Android

Added in 1.7.0-alpha01

@Composable
public fun PickerGroup(
    modifier: Modifier = Modifier,
    selectedPickerState: PickerState? = null,
    autoCenter: Boolean = true,
    propagateMinConstraints: Boolean = false,
    content: @Composable PickerGroupScope.() -> Unit,
)

Parameters

selectedPickerState The PickerState of the Picker that is selected. Null value means that no Picker is selected.
modifier Modifier to be applied to the PickerGroup.
autoCenter Indicates whether the selected Picker should be centered on the screen. It is recommended to set this as true when all the pickers cannot be fit into the screen. Or provide a mechanism to navigate to pickers which are not visible on screen. If false, the whole row containing pickers would be centered.
propagateMinConstraints Whether the incoming min constraints should be passed to content.
content The content of the PickerGroup as a container of Pickers.

Last updated: