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