SnackbarDefaults

Object to hold defaults used by Snackbar

Properties

Link copied to clipboard

Default background color of the Snackbar

Link copied to clipboard

Provides a best-effort 'primary' color to be used as the primary color inside a Snackbar. Given that Snackbars have an 'inverted' theme, i.e. in a light theme they appear dark, and in a dark theme they appear light, just using Colors.primary will not work, and has incorrect contrast.