FloatingItemText
fun FloatingItemText(text: AnnotatedString, modifier: Modifier = Modifier, showChevron: Boolean = false, secondary: String? = null, secondaryColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
fun FloatingItemText(text: String, modifier: Modifier = Modifier, showChevron: Boolean = false, secondary: String? = null, secondaryColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
Deprecated
Use SegmentedItemText instead.
Replace with
import org.multipaz.compose.items.SegmentedItemText
Content copied to clipboard
SegmentedItemText(text = text, modifier = modifier, showChevron = showChevron, secondary = secondary, secondaryColor = secondaryColor, image = image, trailingContent = trailingContent)Content copied to clipboard
An item showing a primary text label, with optional secondary text below.
Parameters
text
primary text to be shown.
modifier
a Modifier.
showChevron
whether to show a right chevron icon on the right side.
secondary
optional text to show below the main text, in smaller font and secondaryColor.
secondaryColor
the color to use for secondary, defaults to MaterialTheme.colorScheme.onSurfaceVariant.
image
optional image, shown to the left of the text.
trailingContent
optional trailing content.