Package-level declarations

Types

Link copied to clipboard
class ScaffoldSnackbars(val hostState: SnackbarHostState, scope: CoroutineScope)

The snackbars of the Toolkit scaffold around a screen: a page's frame or the shell's tabs. The scaffold draws them above its bottom bar, its floating action buttons and the system bars; the screen only says what to show.

Link copied to clipboard

Properties

Link copied to clipboard

The ScaffoldSnackbars of the Toolkit scaffold around this point of the composition, if any.

Functions

Link copied to clipboard
fun DefaultSnackbarHost(snackbarState: SnackbarHostState, modifier: Modifier = Modifier)

Material 3 SnackbarHost that draws each snackbar the Toolkit's way, with ToolkitSnackbar, or with the CustomSnackbarVisuals.content a screen gave it.

Link copied to clipboard

The snackbars of the Toolkit scaffold around this screen. Outside one, snackbars go to a host of their own that nothing draws until the caller puts a DefaultSnackbarHost on it.

Link copied to clipboard
fun ToolkitSnackbar(data: SnackbarData, modifier: Modifier = Modifier)

One snackbar as the Toolkit draws it: the colours of its ToolkitSnackbarStyle or its own, an optional icon, the message, the action when it has one, and a dismiss button with the Toolkit's sound and haptic feedback when it asks for one.