Snackbar
Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn’t interrupt the user experience, and they don’t require user input to disappear.
A Snackbar can contain a single action. Because Snackbar disappears automatically, the action shouldn't be "Dismiss" or "Cancel".
If you want to customise appearance of the Snackbar, you can pass your own version as a child of the SnackbarHost to the Scaffold
Parameters
modifiers for the Snackbar layout
The SnackbarIntent which defines the colour and icon of the Snackbar. Defaults to SnackbarIntent.Info.
An optional custom icon that overrides the default intent icon.
An optional title to be displayed above the message content.
action to add as an action to the snackbar.
callback when the action is clicked.
Callback for dismiss icon click.
Snackbars provide brief messages about app processes at the bottom of the screen.
Snackbars inform users of a process that an app has performed or will perform. They appear temporarily, towards the bottom of the screen. They shouldn’t interrupt the user experience, and they don’t require user input to disappear.
A Snackbar can contain a single action. Because Snackbar disappears automatically, the action shouldn't be "Dismiss" or "Cancel".
If you want to customise appearance of the Snackbar, you can pass your own version as a child of the SnackbarHost to the Scaffold
Parameters
modifiers for the Snackbar layout
data class that contains the necessary information of a particular Snackbar have a look at SnackbarSparkVisuals , SnackbarData