Package-level declarations
Functions
Link copied to clipboard
fun FloatingItemCenteredText(text: AnnotatedString, modifier: Modifier = Modifier, showChevron: Boolean = false)
fun FloatingItemCenteredText(text: String, modifier: Modifier = Modifier, showChevron: Boolean = false)
An item showing centered italicized text in the secondary/muted color.
Link copied to clipboard
fun FloatingItemContainer(modifier: Modifier = Modifier, showChevron: Boolean = false, content: @Composable () -> Unit)
A generic container that applies the standard list item styling (background, width, padding).
Link copied to clipboard
fun FloatingItemHeadingAndContent(heading: String, content: @Composable () -> Unit, modifier: Modifier = Modifier, showChevron: Boolean = false, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
An item showing a field heading with custom content below it.
Link copied to clipboard
fun FloatingItemHeadingAndDate(heading: String, date: Instant?, timeZone: TimeZone = TimeZone.currentSystemDefault(), dateStyle: FormatStyle = FormatStyle.MEDIUM, modifier: Modifier = Modifier, showChevron: Boolean = false, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
Like FloatingItemHeadingAndText, but with a date instead of text.
Link copied to clipboard
fun FloatingItemHeadingAndDateTime(heading: String, dateAndTime: Instant?, timeZone: TimeZone = TimeZone.currentSystemDefault(), dateStyle: FormatStyle = FormatStyle.MEDIUM, timeStyle: FormatStyle = FormatStyle.MEDIUM, modifier: Modifier = Modifier, showChevron: Boolean = false, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
Like FloatingItemHeadingAndText, but with a date and time instead of text.
Link copied to clipboard
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.
Link copied to clipboard
fun FloatingItemList(modifier: Modifier = Modifier, title: String? = null, content: @Composable ColumnScope.() -> Unit)
Draws a floating list of items.
Link copied to clipboard
fun LazyListScope.floatingItemList(count: Int, title: String? = null, key: (index: Int) -> Any? = null, contentType: (index: Int) -> Any? = { null }, itemContent: @Composable LazyItemScope.(index: Int) -> Unit)
fun <T> LazyListScope.floatingItemList(items: List<T>, title: String? = null, key: (item: T) -> Any? = null, contentType: (item: T) -> Any? = { null }, itemContent: @Composable LazyItemScope.(item: T) -> Unit)
Adds a lazy floating list of items into an outer LazyColumn.
Link copied to clipboard
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 = {})
An item showing a primary text label, with optional secondary text below.
Link copied to clipboard
fun LazyFloatingItemList(modifier: Modifier = Modifier, title: String? = null, state: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), reverseLayout: Boolean = false, horizontalAlignment: Alignment.Horizontal = Alignment.Start, flingBehavior: FlingBehavior = ScrollableDefaults.flingBehavior(), userScrollEnabled: Boolean = true, content: LazyListScope.() -> Unit)
Draws a lazy floating list of items.