PollSwitchList
fun PollSwitchList(modifier: Modifier = Modifier, pollSwitchItems: List<PollSwitchItem>, onSwitchesChanged: (List<PollSwitchItem>) -> Unit, itemHeightSize: Dp = ChatTheme.dimens.pollOptionInputHeight, itemInnerPadding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 16.dp))
The Poll switch list is that a Composable that enables users to create a poll with configurations.
Parameters
modifier
The Modifier for styling.
pollSwitchItems
A list of PollSwitchItem to create the configuration list.
onSwitchesChanged
A lambda that will be executed when a switch on the list is changed.
itemHeightSize
The height size of the question item.
itemInnerPadding
The inner padding size of the question item. It provides the index information from and to as a receiver, so you must swap the item of the questions list.