FloatingItemHeadingAndText
fun FloatingItemHeadingAndText(heading: String, text: AnnotatedString, modifier: Modifier = Modifier, showChevron: Boolean = false, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
fun FloatingItemHeadingAndText(heading: String, text: String, modifier: Modifier = Modifier, showChevron: Boolean = false, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
An item showing a field heading with selectable text below it.
This is intended for key-value inspector and detail views where the value text should be user-selectable (wrapped in a SelectionContainer).
Parameters
heading
field label shown at the top in semi-bold.
text
value shown below the heading.
modifier
a Modifier.
showChevron
whether to show a right chevron icon on the right side.
image
optional image, shown to the left of the text.
trailingContent
optional trailing content.