PickerGroup
Composable Component
A group of Picker
s to build components where multiple pickers are required to be combined
together. At most one Picker
can be selected at a time. When touch exploration services are
enabled, the focus moves to the picker which is clicked.
Android
@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 Picker s. |