Skip to content

SnackBarTheme

Defines default property values for descendant SnackBar controls.

属性 ​

名称类型默认值说明
bgcolorOptional[ColorValue]NoneOverrides the default value of bgcolor in all descendant SnackBar controls.
action_text_colorOptional[ColorValue]NoneOverrides the default value of text_color of action in all descendant SnackBar controls.
action_bgcolorOptional[ColorValue]NoneOverrides the default value of bgcolor of action in all descendant SnackBar controls.
close_icon_colorOptional[ColorValue]NoneOverrides the default value of close_icon_color in all descendant SnackBar controls.
disabled_action_text_colorOptional[ColorValue]NoneOverrides the default value of disabled_text_color of action in all descendant SnackBar controls.
disabled_action_bgcolorOptional[ColorValue]NoneOverrides the default value of disabled_color of action in all descendant SnackBar controls.
elevationOptional[Number]NoneOverrides the default value of elevation in all descendant SnackBar controls.
content_text_styleOptional[TextStyle]NoneUsed to configure the text_style property for the [SnackBar.content] control.
widthOptional[Number]NoneOverrides the default value of width in all descendant SnackBar controls.
show_close_iconOptional[bool]NoneOverrides the default value of show_close_icon in all descendant SnackBar controls.
dismiss_directionOptional[DismissDirection]NoneOverrides the default value of dismiss_direction in all descendant SnackBar controls.
behaviorOptional[SnackBarBehavior]NoneOverrides the default value of behavior in all descendant SnackBar controls.
shapeOptional[OutlinedBorder]NoneOverrides the default value of shape in all descendant SnackBar controls.
inset_paddingOptional[PaddingValue]NoneOverrides the default value for margin. This value is only used when behavior is SnackBarBehavior.floating.
action_overflow_thresholdOptional[Number]NoneOverrides the default value of action_overflow_threshold in all descendant SnackBar controls.

关注我,学习大模型、大数据、Python等热门技术。