FloatingItemHeadingAndDate

fun FloatingItemHeadingAndDate(heading: String, date: Instant?, timeZone: TimeZone = TimeZone.currentSystemDefault(), dateStyle: FormatStyle = FormatStyle.MEDIUM, modifier: Modifier = Modifier, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})

Like FloatingItemHeadingAndText, but with a date instead of text.

Parameters

heading

will be shown in bold at the top.

date

will be shown below the heading or "Not set" if null.

timeZone

the timezone to use for displaying the point in time.

dateStyle

the amount of data to include in the date component.

modifier
image

optional image, shown to the left of the text.

trailingContent

optional trailing content.