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