StreamSnackbarStyle class

Visual styling properties for a StreamSnackbar.

Defines the snackbar's container appearance, text style, icon style, and the outer margin used when positioning above the safe area / keyboard.

Annotations

Constructors

StreamSnackbarStyle({Color? backgroundColor, Color? foregroundColor, OutlinedBorder? shape, BorderSide? side, double? elevation, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BoxConstraints? constraints, TextStyle? textStyle, StreamButtonThemeStyle? actionStyle, DismissDirection? dismissDirection})
Creates a snackbar style with optional property overrides.
const

Properties

actionStyle StreamButtonThemeStyle?
Button styling for the trailing action.
final
backgroundColor Color?
Pill background colour.
final
canMerge bool
no setterinherited
constraints BoxConstraints?
Size constraints for the pill container.
final
dismissDirection DismissDirection?
Direction the user can swipe to dismiss the snackbar.
final
elevation double?
The z-coordinate at which to place the snackbar's Material.
final
foregroundColor Color?
Text and leading-icon colour. The icon adopts this colour automatically.
final
hashCode int
The hash code for this object.
no setterinherited
margin EdgeInsetsGeometry?
Outer margin between the snackbar and the screen edges / safe area / keyboard inset.
final
padding EdgeInsetsGeometry?
Padding between the pill border and the inner content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape OutlinedBorder?
The shape of the pill container.
final
side BorderSide?
The colour and weight of the pill's outline.
final
textStyle TextStyle?
Text style applied to the message.
final

Methods

copyWith({Color? backgroundColor, Color? foregroundColor, OutlinedBorder? shape, BorderSide? side, double? elevation, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BoxConstraints? constraints, TextStyle? textStyle, StreamButtonThemeStyle? actionStyle, DismissDirection? dismissDirection}) StreamSnackbarStyle
inherited
merge(StreamSnackbarStyle? other) StreamSnackbarStyle
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lerp(StreamSnackbarStyle? a, StreamSnackbarStyle? b, double t) StreamSnackbarStyle?
Linearly interpolate between two StreamSnackbarStyle objects.