NavigationRailTheme
Customizes the appearance of NavigationRail across the app.
Properties
-
bgcolor(Optional[ColorValue]) –Color to be used for the
NavigationRail's background. -
elevation(Optional[Number]) –The z-coordinate to be used for the
NavigationRail's elevation. -
group_alignment(Optional[Number]) –The alignment for the
NavigationRail.destinationsas they are positioned within theNavigationRail. -
indicator_color(Optional[ColorValue]) –Overrides the default value of
NavigationRail.indicator_colorin all descendantNavigationRailcontrols. whenNavigationRailTheme.use_indicator -
indicator_shape(Optional[OutlinedBorder]) –Overrides the default value of
NavigationRail.indicator_shapein all descendantNavigationRailcontrols. -
label_type(Optional[NavigationRailLabelType]) –The type that defines the layout and behavior of the labels in the
NavigationRail. -
min_extended_width(Optional[Number]) –Overrides the default value of
NavigationRail.min_extended_widthin all descendantNavigationRailcontrols when they are extended. -
min_width(Optional[Number]) –Overrides the default value of
NavigationRail.min_widthin all descendantNavigationRailcontrols when they are not extended. -
selected_label_text_style(Optional[TextStyle]) –Overrides the default value of
NavigationRail.selected_label_text_style -
unselected_label_text_style(Optional[TextStyle]) –Overrides the default value of
NavigationRail.unselected_label_text_style -
use_indicator(Optional[bool]) –Overrides the default value of
NavigationRail.use_indicatorin all descendantNavigationRailcontrols.
Properties#
bgcolor
class-attribute
instance-attribute
#
bgcolor: Optional[ColorValue] = None
Color to be used for the NavigationRail's background.
elevation
class-attribute
instance-attribute
#
The z-coordinate to be used for the NavigationRail's elevation.
group_alignment
class-attribute
instance-attribute
#
The alignment for the NavigationRail.destinations as they are positioned within the NavigationRail.
indicator_color
class-attribute
instance-attribute
#
indicator_color: Optional[ColorValue] = None
Overrides the default value of NavigationRail.indicator_color in all descendant NavigationRail controls. when NavigationRailTheme.use_indicator
is true.
indicator_shape
class-attribute
instance-attribute
#
indicator_shape: Optional[OutlinedBorder] = None
Overrides the default value of NavigationRail.indicator_shape in all descendant NavigationRail controls.
label_type
class-attribute
instance-attribute
#
label_type: Optional[NavigationRailLabelType] = None
The type that defines the layout and behavior of the labels in the NavigationRail.
min_extended_width
class-attribute
instance-attribute
#
Overrides the default value of NavigationRail.min_extended_width in all descendant NavigationRail controls when they are extended.
min_width
class-attribute
instance-attribute
#
Overrides the default value of NavigationRail.min_width in all descendant NavigationRail controls when they are not extended.
selected_label_text_style
class-attribute
instance-attribute
#
Overrides the default value of NavigationRail.selected_label_text_style
in all descendant NavigationRail controls.
unselected_label_text_style
class-attribute
instance-attribute
#
Overrides the default value of NavigationRail.unselected_label_text_style
in all descendant NavigationRail controls.
use_indicator
class-attribute
instance-attribute
#
Overrides the default value of NavigationRail.use_indicator in all descendant NavigationRail controls.