主题
NavigationRailTheme
Customizes the appearance of descendant NavigationRail controls.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
bgcolor | Optional[ColorValue] | None | Color to be used for the NavigationRail's background. |
indicator_color | Optional[ColorValue] | None | Overrides the default value of indicator_color in all descendant NavigationRail controls. when use_indicator is true. |
elevation | Optional[Number] | None | The z-coordinate to be used for the NavigationRail's elevation. |
indicator_shape | Optional[OutlinedBorder] | None | Overrides the default value of indicator_shape in all descendant NavigationRail controls. |
unselected_label_text_style | Optional[TextStyle] | None | Overrides the default value of unselected_label_text_style in all descendant NavigationRail controls. |
selected_label_text_style | Optional[TextStyle] | None | Overrides the default value of selected_label_text_style in all descendant NavigationRail controls. |
label_type | Optional[NavigationRailLabelType] | None | The type that defines the layout and behavior of the labels in the NavigationRail. |
min_width | Optional[Number] | None | Overrides the default value of min_width in all descendant NavigationRail controls when they are not extended. |
min_extended_width | Optional[Number] | None | Overrides the default value of min_extended_width in all descendant NavigationRail controls when they are extended. |
group_alignment | Optional[Number] | None | The alignment for the destinations as they are positioned within the NavigationRail. |
use_indicator | Optional[bool] | None | Overrides the default value of use_indicator in all descendant NavigationRail controls. |