主题
FloatingActionButtonTheme
Customizes the appearance of descendant FloatingActionButton controls.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
bgcolor | Optional[ColorValue] | None | Color to be used for the unselected, enabled FloatingActionButton's background. |
hover_color | Optional[ColorValue] | None | The color to use for filling the button when the button has a pointer hovering over it. |
focus_color | Optional[ColorValue] | None | The color to use for filling the button when the button has input focus. |
foreground_color | Optional[ColorValue] | None | Color to be used for the unselected, enabled FloatingActionButton's foreground. |
splash_color | Optional[ColorValue] | None | Overrides the default value of splash_color in all descendant FloatingActionButton controls. |
elevation | Optional[Number] | None | The z-coordinate to be used for the unselected, enabled FloatingActionButton's elevation foreground. |
focus_elevation | Optional[Number] | None | The z-coordinate at which to place this button relative to its parent when the button has the input focus. |
hover_elevation | Optional[Number] | None | The 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_elevation | Optional[Number] | None | The z-coordinate to be used for the selected, enabled FloatingActionButton's elevation foreground. |
disabled_elevation | Optional[Number] | None | The z-coordinate to be used for the disabled FloatingActionButton's elevation foreground. |
shape | Optional[OutlinedBorder] | None | Overrides the default value of shape in all descendant FloatingActionButton controls. |
enable_feedback | Optional[bool] | None | If specified, defines the feedback property for FloatingActionButton. |
extended_padding | Optional[PaddingValue] | None | The padding for a FloatingActionButton's that has both icon and content. |
text_style | Optional[TextStyle] | None | Text style merged into default text style of content. |
icon_label_spacing | Optional[Number] | None | The spacing between the icon and the label for FloatingActionButton. |
extended_size_constraints | Optional[BoxConstraints] | None | Overrides the default size constraints of FloatingActionButton that has both icon and content. |
size_constraints | Optional[BoxConstraints] | None | Overrides the default size constraints of FloatingActionButton that has either icon or content and is not a mini button. |