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 SegmentedItemHeadingAndText, 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 SegmentedItemHeadingAndText, 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 segmented 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 segmented 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 segmented list of items.

Link copied to clipboard
fun LazySegmentedItemList(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 segmented list of items.

Link copied to clipboard
fun SegmentedItemCenteredText(text: AnnotatedString, modifier: Modifier = Modifier, showChevron: Boolean = false)
fun SegmentedItemCenteredText(text: String, modifier: Modifier = Modifier, showChevron: Boolean = false)

An item showing centered italicized text in the secondary/muted color.

Link copied to clipboard
fun SegmentedItemContainer(modifier: Modifier = Modifier, showChevron: Boolean = false, shape: Shape = LocalSegmentedItemShape.current ?: RoundedCornerShape(SEGMENT_INNER_CORNER), selected: Boolean = false, content: @Composable () -> Unit)

A generic container that applies the standard segmented list item styling (rounded corners, container surface background, width, and padding).

fun SegmentedItemContainer(index: Int, count: Int, modifier: Modifier = Modifier, showChevron: Boolean = false, selected: Boolean = false, content: @Composable () -> Unit)

A generic container that applies the standard segmented list item styling for an item at index out of count items.

Link copied to clipboard
fun SegmentedItemHeadingAndContent(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 SegmentedItemHeadingAndDate(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 SegmentedItemHeadingAndText, but with a date instead of text.

Link copied to clipboard
fun SegmentedItemHeadingAndDateTime(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 SegmentedItemHeadingAndText, but with a date and time instead of text.

Link copied to clipboard
fun SegmentedItemHeadingAndText(heading: String, text: AnnotatedString, modifier: Modifier = Modifier, showChevron: Boolean = false, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
fun SegmentedItemHeadingAndText(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 SegmentedItemList(modifier: Modifier = Modifier, title: String? = null, content: @Composable ColumnScope.() -> Unit)

Draws a segmented list of items.

Link copied to clipboard
fun LazyListScope.segmentedItemList(count: Int, title: String? = null, key: (index: Int) -> Any? = null, contentType: (index: Int) -> Any? = { null }, itemContent: @Composable LazyItemScope.(index: Int) -> Unit)
fun <T> LazyListScope.segmentedItemList(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 segmented list of items into an outer LazyColumn.

Link copied to clipboard

Returns the RoundedCornerShape for an item at index in a segmented list of count items, with 16.dp outer corners on the first/last item and 4.dp inner corners between adjacent items.

Link copied to clipboard
fun SegmentedItemText(text: AnnotatedString, modifier: Modifier = Modifier, showChevron: Boolean = false, secondary: String? = null, secondaryColor: Color = MaterialTheme.colorScheme.onSurfaceVariant, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
fun SegmentedItemText(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.