ListItem

fun ListItem(modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, text: String, disclosureEnabled: Boolean = false, disclosureIconRes: Int?, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, label: String? = null, subtitle: String? = null, motion: Motion<ListItemMotionStyle> = rememberListItemMotion(motionContext = rememberMotionContext(interactionSource)))

Deprecated

Use ListItem with disclosureIconSource

Replace with

ListItem(disclosureIconSource = resourceImageSource(disclosureIconRes))
fun ListItem(modifier: Modifier = Modifier, titleContent: @Composable () -> Unit, style: ListItemStyle = LocalListItemStyle.current, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, disclosureEnabled: Boolean = true, labelContent: @Composable () -> Unit? = null, subtitleContent: @Composable () -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, disclosureContent: @Composable RowScope.() -> Unit = { ListItemDisclosure(style, interactionSource) })

Компонент ListItem

Parameters

modifier

модификатор

titleContent

заголовок элемента

style

стиль компонента

interactionSource

источник взаимодействий

disclosureEnabled

включен ли disclosure

labelContent

подпись элемента

subtitleContent

подзаголовок

startContent

контент в начале

endContent

контент в конце

disclosureContent

контент в disclosure


fun ListItem(motion: Motion<ListItemMotionStyle>, titleContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, disclosureEnabled: Boolean = true, labelContent: @Composable () -> Unit? = null, subtitleContent: @Composable () -> Unit? = null, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, disclosureContent: @Composable RowScope.() -> Unit = { ListItemDisclosure(style, motion) })

Компонент ListItem

Parameters

motion

объект анимаций

modifier

модификатор

titleContent

заголовок элемента

style

стиль компонента

disclosureEnabled

включен ли disclosure

labelContent

подпись элемента

subtitleContent

подзаголовок

startContent

контент в начале

endContent

контент в конце

disclosureContent

контент в disclosure


fun ListItem(modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, text: String, disclosureEnabled: Boolean = false, disclosureIconSource: ImageSource? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, startContent: @Composable RowScope.() -> Unit? = null, endContent: @Composable RowScope.() -> Unit? = null, label: String? = null, subtitle: String? = null, motion: Motion<ListItemMotionStyle> = rememberListItemMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент ListItem

Parameters

modifier

модификатор

style

стиль компонента

text

текст элемента

disclosureEnabled

включена ли иконка

disclosureIconSource

источник иконки disclosure

interactionSource

источник взаимодействий

startContent

контент в начале

endContent

контент в конце

label

лэйбл

subtitle

сабтайтл


fun ListItem(modifier: Modifier = Modifier, style: ListItemStyle = LocalListItemStyle.current, title: String, disclosureEnabled: Boolean = false, disclosureIcon: Painter? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

Deprecated

Use ListItem with disclosureIconRes

Компонент ListItem

Parameters

modifier

модификатор

style

стиль компонента

title

текст элемента

disclosureEnabled

включена ли иконка

disclosureIcon

иконка

interactionSource

источник взаимодействий