Package-level declarations

Types

Link copied to clipboard

Controls snackbar presentation through SnackbarHostState.

Controls snackbar presentation through SnackbarHostState.

Controls snackbar presentation through SnackbarHostState.

Link copied to clipboard

Non-suspending façade over SnackbarController.

Functions

Link copied to clipboard
fun <T> ColumnWithDividers(elements: List<T>, makeElement: @Composable ColumnScope.(T) -> Unit, modifier: Modifier = Modifier, makeDivider: @Composable ColumnScope.() -> Unit = { HorizontalDivider() }, verticalArrangement: Arrangement.Vertical = Arrangement.Top, horizontalAlignment: Alignment.Horizontal = Alignment.Start)

Column whose elements, rendered through makeElement, will be divided by makeDivider. makeDivider will be invoked only in between elements, that is, neither before the first, nor after the last element.

Link copied to clipboard

Shortcut for currentSnackbarData?.dismiss().

Link copied to clipboard
Link copied to clipboard
fun rememberSnackbarLauncher(snackbarHostState: SnackbarHostState, scope: CoroutineScope = rememberCoroutineScope()): SnackbarLauncher

Creates and remembers a SnackbarLauncher for snackbarHostState.

Link copied to clipboard
fun DrawerState.rememberVisibilityProgress(maxWidth: Dp = DrawerDefaults.MaximumDrawerWidth): State<Float>
Link copied to clipboard

Launches replacement of the currently shown snackbar with visuals created with the associated Context.

Dismisses the currently showing snackbar if there is one and shows a new one with the given snackbarVisuals.

suspend fun SnackbarHostState.replaceCurrentWith(message: String, actionLabel: String? = null, withDismissAction: Boolean = false, duration: SnackbarDuration = if (actionLabel == null) SnackbarDuration.Short else SnackbarDuration.Indefinite): SnackbarResult

Dismisses the currently showing snackbar if there is one and shows a new one with the given parameters.

Link copied to clipboard
fun <T> RowWithDividers(elements: List<T>, makeElement: @Composable RowScope.(T) -> Unit, modifier: Modifier = Modifier, makeDivider: @Composable RowScope.() -> Unit = { VerticalDivider() }, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, verticalAlignment: Alignment.Vertical = Alignment.Top)

Row whose elements, rendered through makeElement, will be divided by makeDivider. makeDivider will be invoked only in between elements, that is, neither before the first, nor after the last element.

Link copied to clipboard
fun SnackbarLauncher.show(makeSnackbar: Context.() -> SnackbarVisuals)

Launches showing snackbar visuals created with the associated Context.

Link copied to clipboard
Link copied to clipboard
fun WithLocalContentColor(color: Color, content: @Composable () -> Unit)

Provides color as LocalContentColor to the content.

Link copied to clipboard

Lets Material components measure at their visual size without enforcing a minimum interactive component size.