PollOptionList
fun PollOptionList(modifier: Modifier = Modifier, lazyListState: LazyListState = rememberLazyListState(), title: String = stringResource(id = R.string.stream_compose_poll_option_title), optionItems: List<PollOptionItem> = emptyList(), onQuestionsChanged: (List<PollOptionItem>) -> Unit, itemHeightSize: Dp = ChatTheme.dimens.pollOptionInputHeight, itemInnerPadding: PaddingValues = PaddingValues(horizontal = 16.dp, vertical = 4.dp))
The Poll Creation option list that is a Composable that enables users to create and reorder question items easily.
Parameters
modifier
The Modifier for styling.
lazyListState
State of the lazy list that represents the list of messages. Useful for controlling the scroll state.
title
The title of the question list.
optionItems
The list of pre-questions. The type of the list is PollOptionItem.
onQuestionsChanged
This lambda will be executed when the item of the question list is reordered.
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 optionItems list.