主题
NavigationDrawerTheme
Customizes the appearance of descendant NavigationDrawer controls.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
bgcolor | Optional[ColorValue] | None | Overrides the default value for bgcolor. |
shadow_color | Optional[ColorValue] | None | Overrides the default value for shadow_color. |
indicator_color | Optional[ColorValue] | None | Overrides the default value for indicator_color. |
elevation | Optional[Number] | None | Overrides the default value for elevation. |
tile_height | Optional[Number] | None | Overrides the default height of NavigationDrawerDestination. |
label_text_style | Optional[ControlStateValue[TextStyle]] | None | The style to merge with the default text style for NavigationDrawerDestination labels. Can be used to specify a different style when the label is selected. |
indicator_shape | Optional[OutlinedBorder] | None | Overrides the default value for indicator_shape. |
indicator_size | Optional[Size] | None | Overrides the default size of the NavigationDrawer's selection indicator. |
icon_theme | Optional[ControlStateValue['IconTheme']] | None | The theme to merge with the default icon theme for NavigationDrawerDestination icons. Can be used to specify a different icon theme when the icon is selected. |