FloatingItemHeadingAndDateTime
fun FloatingItemHeadingAndDateTime(heading: String, dateAndTime: Instant?, timeZone: TimeZone = TimeZone.currentSystemDefault(), dateStyle: FormatStyle = FormatStyle.MEDIUM, timeStyle: FormatStyle = FormatStyle.MEDIUM, modifier: Modifier = Modifier, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
Like FloatingItemHeadingAndText, but with a date and time instead of text.
Parameters
heading
will be shown in bold at the top.
dateAndTime
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.
timeStyle
the amount of data to include in the time component.
modifier
a Modifier.
image
optional image, shown to the left of the text.
trailingContent
optional trailing content.