SnackBarTheme
Defines default property values for descendant SnackBar controls.
Properties
action_bgcolor- Overrides the default value ofbgcolorofflet.SnackBar.actionin all descendantSnackBarcontrols.action_overflow_threshold- Overrides the default value offlet.SnackBar.action_overflow_thresholdin all descendantSnackBarcontrols.action_text_color- Overrides the default value oftext_colorofflet.SnackBar.actionin all descendantSnackBarcontrols.behavior- Overrides the default value offlet.SnackBar.behaviorin all descendantSnackBarcontrols.bgcolor- Overrides the default value offlet.SnackBar.bgcolorin all descendantSnackBarcontrols.close_icon_color- Overrides the default value offlet.SnackBar.close_icon_colorin all descendantSnackBarcontrols.content_text_style- Used to configure thetext_styleproperty for the [SnackBar.content] control.disabled_action_bgcolor- Overrides the default value ofdisabled_colorofflet.SnackBar.actionin all descendantSnackBarcontrols.disabled_action_text_color- Overrides the default value ofdisabled_text_colorofflet.SnackBar.actionin all descendantSnackBarcontrols.dismiss_direction- Overrides the default value offlet.SnackBar.dismiss_directionin all descendantSnackBarcontrols.elevation- Overrides the default value offlet.SnackBar.elevationin all descendantSnackBarcontrols.inset_padding- Overrides the default value forflet.SnackBar.margin.shape- Overrides the default value offlet.SnackBar.shapein all descendantSnackBarcontrols.show_close_icon- Overrides the default value offlet.SnackBar.show_close_iconin all descendantSnackBarcontrols.width- Overrides the default value offlet.SnackBar.widthin all descendantSnackBarcontrols.
Properties
action_bgcolorclass-attributeinstance-attribute
action_bgcolor: Optional[ColorValue] = NoneOverrides the default value of bgcolor of flet.SnackBar.action in all descendant SnackBar controls.
action_overflow_thresholdclass-attributeinstance-attribute
action_overflow_threshold: Optional[Number] = NoneOverrides the default value of flet.SnackBar.action_overflow_threshold in all descendant SnackBar controls.
action_text_colorclass-attributeinstance-attribute
action_text_color: Optional[ColorValue] = NoneOverrides the default value of text_color of flet.SnackBar.action in all descendant SnackBar controls.
behaviorclass-attributeinstance-attribute
behavior: Optional[SnackBarBehavior] = NoneOverrides the default value of flet.SnackBar.behavior in all descendant SnackBar controls.
bgcolorclass-attributeinstance-attribute
bgcolor: Optional[ColorValue] = NoneOverrides the default value of flet.SnackBar.bgcolor in all descendant SnackBar controls.
close_icon_colorclass-attributeinstance-attribute
close_icon_color: Optional[ColorValue] = NoneOverrides the default value of flet.SnackBar.close_icon_color in all descendant SnackBar controls.
content_text_styleclass-attributeinstance-attribute
content_text_style: Optional[TextStyle] = NoneUsed to configure the text_style property for the [SnackBar.content] control.
disabled_action_bgcolorclass-attributeinstance-attribute
disabled_action_bgcolor: Optional[ColorValue] = NoneOverrides the default value of disabled_color of flet.SnackBar.action in all descendant SnackBar controls.
disabled_action_text_colorclass-attributeinstance-attribute
disabled_action_text_color: Optional[ColorValue] = NoneOverrides the default value of disabled_text_color of flet.SnackBar.action in all descendant SnackBar controls.
dismiss_directionclass-attributeinstance-attribute
dismiss_direction: Optional[DismissDirection] = NoneOverrides the default value of flet.SnackBar.dismiss_direction in all descendant SnackBar controls.
elevationclass-attributeinstance-attribute
elevation: Optional[Number] = NoneOverrides the default value of flet.SnackBar.elevation in all descendant SnackBar controls.
inset_paddingclass-attributeinstance-attribute
inset_padding: Optional[PaddingValue] = NoneOverrides the default value for flet.SnackBar.margin.
This value is only used when behavior is SnackBarBehavior.floating.
shapeclass-attributeinstance-attribute
shape: Optional[OutlinedBorder] = NoneOverrides the default value of flet.SnackBar.shape in all descendant SnackBar controls.
show_close_iconclass-attributeinstance-attribute
show_close_icon: Optional[bool] = NoneOverrides the default value of flet.SnackBar.show_close_icon in all descendant SnackBar controls.
widthclass-attributeinstance-attribute
width: Optional[Number] = NoneOverrides the default value of flet.SnackBar.width in all descendant SnackBar controls.