Skip to content

NavigationDrawerTheme

Customizes the appearance of descendant NavigationDrawer controls.

属性 ​

名称类型默认值说明
bgcolorOptional[ColorValue]NoneOverrides the default value for bgcolor.
shadow_colorOptional[ColorValue]NoneOverrides the default value for shadow_color.
indicator_colorOptional[ColorValue]NoneOverrides the default value for indicator_color.
elevationOptional[Number]NoneOverrides the default value for elevation.
tile_heightOptional[Number]NoneOverrides the default height of NavigationDrawerDestination.
label_text_styleOptional[ControlStateValue[TextStyle]]NoneThe 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_shapeOptional[OutlinedBorder]NoneOverrides the default value for indicator_shape.
indicator_sizeOptional[Size]NoneOverrides the default size of the NavigationDrawer's selection indicator.
icon_themeOptional[ControlStateValue['IconTheme']]NoneThe 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.

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