NavigationRailTheme
Customizes the appearance of NavigationRail across the app.
Properties
bgcolor- Color to be used for the NavigationRail's background.elevation- The z-coordinate to be used for the NavigationRail's elevation.group_alignment- The alignment for the flet.NavigationRail.destinations as they are positioned within the NavigationRail.indicator_color- Overrides the default value of flet.NavigationRail.indicator_color in all descendant NavigationRail controls.indicator_shape- Overrides the default value of flet.NavigationRail.indicator_shape in all descendant NavigationRail controls.label_type- The type that defines the layout and behavior of the labels in the NavigationRail.min_extended_width- Overrides the default value of flet.NavigationRail.min_extended_width in all descendant NavigationRail controls when they are extended.min_width- Overrides the default value of flet.NavigationRail.min_width in all descendant NavigationRail controls when they are not extended.selected_label_text_style- Overrides the default value of flet.NavigationRail.selected_label_text_style in all descendant NavigationRail controls.unselected_label_text_style- Overrides the default value of flet.NavigationRail.unselected_label_text_style in all descendant NavigationRail controls.use_indicator- Overrides the default value of flet.NavigationRail.use_indicator in all descendant NavigationRail controls.
Properties
bgcolorclass-attributeinstance-attribute
bgcolor: Optional[ColorValue] = NoneColor to be used for the NavigationRail's background.
elevationclass-attributeinstance-attribute
elevation: Optional[Number] = NoneThe z-coordinate to be used for the NavigationRail's elevation.
group_alignmentclass-attributeinstance-attribute
group_alignment: Optional[Number] = NoneThe alignment for the flet.NavigationRail.destinations as they are positioned within the NavigationRail.
indicator_colorclass-attributeinstance-attribute
indicator_color: Optional[ColorValue] = NoneOverrides the default value of flet.NavigationRail.indicator_color in all descendant NavigationRail controls. when flet.NavigationRailTheme.use_indicator is true.
indicator_shapeclass-attributeinstance-attribute
indicator_shape: Optional[OutlinedBorder] = NoneOverrides the default value of flet.NavigationRail.indicator_shape in all descendant NavigationRail controls.
label_typeclass-attributeinstance-attribute
label_type: Optional[NavigationRailLabelType] = NoneThe type that defines the layout and behavior of the labels in the NavigationRail.
min_extended_widthclass-attributeinstance-attribute
min_extended_width: Optional[Number] = NoneOverrides the default value of flet.NavigationRail.min_extended_width in all descendant NavigationRail controls when they are extended.
min_widthclass-attributeinstance-attribute
min_width: Optional[Number] = NoneOverrides the default value of flet.NavigationRail.min_width in all descendant NavigationRail controls when they are not extended.
selected_label_text_styleclass-attributeinstance-attribute
selected_label_text_style: Optional[TextStyle] = NoneOverrides the default value of flet.NavigationRail.selected_label_text_style in all descendant NavigationRail controls.
unselected_label_text_styleclass-attributeinstance-attribute
unselected_label_text_style: Optional[TextStyle] = NoneOverrides the default value of flet.NavigationRail.unselected_label_text_style in all descendant NavigationRail controls.
use_indicatorclass-attributeinstance-attribute
use_indicator: Optional[bool] = NoneOverrides the default value of flet.NavigationRail.use_indicator in all descendant NavigationRail controls.