Skip to content

NavigationRailTheme

Customizes the appearance of descendant NavigationRail controls.

属性 ​

名称类型默认值说明
bgcolorOptional[ColorValue]NoneColor to be used for the NavigationRail's background.
indicator_colorOptional[ColorValue]NoneOverrides the default value of indicator_color in all descendant NavigationRail controls. when use_indicator is true.
elevationOptional[Number]NoneThe z-coordinate to be used for the NavigationRail's elevation.
indicator_shapeOptional[OutlinedBorder]NoneOverrides the default value of indicator_shape in all descendant NavigationRail controls.
unselected_label_text_styleOptional[TextStyle]NoneOverrides the default value of unselected_label_text_style in all descendant NavigationRail controls.
selected_label_text_styleOptional[TextStyle]NoneOverrides the default value of selected_label_text_style in all descendant NavigationRail controls.
label_typeOptional[NavigationRailLabelType]NoneThe type that defines the layout and behavior of the labels in the NavigationRail.
min_widthOptional[Number]NoneOverrides the default value of min_width in all descendant NavigationRail controls when they are not extended.
min_extended_widthOptional[Number]NoneOverrides the default value of min_extended_width in all descendant NavigationRail controls when they are extended.
group_alignmentOptional[Number]NoneThe alignment for the destinations as they are positioned within the NavigationRail.
use_indicatorOptional[bool]NoneOverrides the default value of use_indicator in all descendant NavigationRail controls.

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