Fix bugs from test #2

Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
This commit is contained in:
2026-07-05 21:14:03 +03:00
Unverified
parent 0752ed980a
commit 5a28f0c756
44 changed files with 1233 additions and 589 deletions
@@ -542,6 +542,7 @@ fun ListItem(
modifier: Modifier = Modifier,
bodyModifier: Modifier = Modifier,
headline: String,
headlineSlot: (@Composable () -> Unit)? = null,
supportingText: String? = null,
supportingSlot: (@Composable () -> Unit)? = null,
leadingContent: (@Composable () -> Unit)? = null,
@@ -678,7 +679,7 @@ fun ListItem(
}
ListItem(
headlineContent = { Text(headline) },
headlineContent = headlineSlot ?: { Text(headline) },
supportingContent = {
when {
supportingSlot != null -> supportingSlot()