Skip to content

FloatingActionButtonTheme

Customizes the appearance of descendant FloatingActionButton controls.

属性 ​

名称类型默认值说明
bgcolorOptional[ColorValue]NoneColor to be used for the unselected, enabled FloatingActionButton's background.
hover_colorOptional[ColorValue]NoneThe color to use for filling the button when the button has a pointer hovering over it.
focus_colorOptional[ColorValue]NoneThe color to use for filling the button when the button has input focus.
foreground_colorOptional[ColorValue]NoneColor to be used for the unselected, enabled FloatingActionButton's foreground.
splash_colorOptional[ColorValue]NoneOverrides the default value of splash_color in all descendant FloatingActionButton controls.
elevationOptional[Number]NoneThe z-coordinate to be used for the unselected, enabled FloatingActionButton's elevation foreground.
focus_elevationOptional[Number]NoneThe z-coordinate at which to place this button relative to its parent when the button has the input focus.
hover_elevationOptional[Number]NoneThe z-coordinate at which to place this button relative to its parent when the button is enabled and has a pointer hovering over it.
highlight_elevationOptional[Number]NoneThe z-coordinate to be used for the selected, enabled FloatingActionButton's elevation foreground.
disabled_elevationOptional[Number]NoneThe z-coordinate to be used for the disabled FloatingActionButton's elevation foreground.
shapeOptional[OutlinedBorder]NoneOverrides the default value of shape in all descendant FloatingActionButton controls.
enable_feedbackOptional[bool]NoneIf specified, defines the feedback property for FloatingActionButton.
extended_paddingOptional[PaddingValue]NoneThe padding for a FloatingActionButton's that has both icon and content.
text_styleOptional[TextStyle]NoneText style merged into default text style of content.
icon_label_spacingOptional[Number]NoneThe spacing between the icon and the label for FloatingActionButton.
extended_size_constraintsOptional[BoxConstraints]NoneOverrides the default size constraints of FloatingActionButton that has both icon and content.
size_constraintsOptional[BoxConstraints]NoneOverrides the default size constraints of FloatingActionButton that has either icon or content and is not a mini button.

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