SnackBarTheme
Defines default property values for descendant SnackBar controls.
Properties
-
action_bgcolor(Optional[ColorValue]) –Overrides the default value of
bgcolorofSnackBar.actionin all descendantSnackBarcontrols. -
action_overflow_threshold(Optional[Number]) –Overrides the default value of
SnackBar.action_overflow_thresholdin all descendantSnackBarcontrols. -
action_text_color(Optional[ColorValue]) –Overrides the default value of
text_colorofSnackBar.actionin all descendantSnackBarcontrols. -
behavior(Optional[SnackBarBehavior]) –Overrides the default value of
SnackBar.behaviorin all descendantSnackBarcontrols. -
bgcolor(Optional[ColorValue]) –Overrides the default value of
SnackBar.bgcolorin all descendantSnackBarcontrols. -
close_icon_color(Optional[ColorValue]) –Overrides the default value of
SnackBar.close_icon_colorin all descendantSnackBarcontrols. -
content_text_style(Optional[TextStyle]) –Used to configure the
text_styleproperty for the [SnackBar.content] control. -
disabled_action_bgcolor(Optional[ColorValue]) –Overrides the default value of
disabled_colorofSnackBar.actionin all descendantSnackBarcontrols. -
disabled_action_text_color(Optional[ColorValue]) –Overrides the default value of
disabled_text_colorofSnackBar.actionin all descendantSnackBarcontrols. -
dismiss_direction(Optional[DismissDirection]) –Overrides the default value of
SnackBar.dismiss_directionin all descendantSnackBarcontrols. -
elevation(Optional[Number]) –Overrides the default value of
SnackBar.elevationin all descendantSnackBarcontrols. -
inset_padding(Optional[PaddingValue]) –Overrides the default value for
SnackBar.margin. -
shape(Optional[OutlinedBorder]) –Overrides the default value of
SnackBar.shapein all descendantSnackBarcontrols. -
show_close_icon(Optional[bool]) –Overrides the default value of
SnackBar.show_close_iconin all descendantSnackBarcontrols. -
width(Optional[Number]) –Overrides the default value of
SnackBar.widthin all descendantSnackBarcontrols.
Properties#
action_bgcolor
class-attribute
instance-attribute
#
action_bgcolor: Optional[ColorValue] = None
Overrides the default value of bgcolor of SnackBar.action in all descendant SnackBar controls.
action_overflow_threshold
class-attribute
instance-attribute
#
Overrides the default value of SnackBar.action_overflow_threshold in all descendant SnackBar controls.
action_text_color
class-attribute
instance-attribute
#
action_text_color: Optional[ColorValue] = None
Overrides the default value of text_color of SnackBar.action in all descendant SnackBar controls.
behavior
class-attribute
instance-attribute
#
behavior: Optional[SnackBarBehavior] = None
Overrides the default value of SnackBar.behavior in all descendant SnackBar controls.
bgcolor
class-attribute
instance-attribute
#
bgcolor: Optional[ColorValue] = None
Overrides the default value of SnackBar.bgcolor in all descendant SnackBar controls.
close_icon_color
class-attribute
instance-attribute
#
close_icon_color: Optional[ColorValue] = None
Overrides the default value of SnackBar.close_icon_color in all descendant SnackBar controls.
content_text_style
class-attribute
instance-attribute
#
Used to configure the text_style property for the [SnackBar.content] control.
disabled_action_bgcolor
class-attribute
instance-attribute
#
disabled_action_bgcolor: Optional[ColorValue] = None
Overrides the default value of disabled_color of SnackBar.action in all descendant SnackBar controls.
disabled_action_text_color
class-attribute
instance-attribute
#
disabled_action_text_color: Optional[ColorValue] = None
Overrides the default value of disabled_text_color of SnackBar.action in all descendant SnackBar controls.
dismiss_direction
class-attribute
instance-attribute
#
dismiss_direction: Optional[DismissDirection] = None
Overrides the default value of SnackBar.dismiss_direction in all descendant SnackBar controls.
elevation
class-attribute
instance-attribute
#
Overrides the default value of SnackBar.elevation in all descendant SnackBar controls.
inset_padding
class-attribute
instance-attribute
#
inset_padding: Optional[PaddingValue] = None
Overrides the default value for SnackBar.margin.
This value is only used when behavior is SnackBarBehavior.floating.
shape
class-attribute
instance-attribute
#
shape: Optional[OutlinedBorder] = None
Overrides the default value of SnackBar.shape in all descendant SnackBar controls.
show_close_icon
class-attribute
instance-attribute
#
Overrides the default value of SnackBar.show_close_icon in all descendant SnackBar controls.
width
class-attribute
instance-attribute
#
Overrides the default value of SnackBar.width in all descendant SnackBar controls.