Skip to main content

NavigationRailTheme

Customizes the appearance of NavigationRail across the app.

Properties

Properties

bgcolorclass-attributeinstance-attribute

bgcolor: Optional[ColorValue] = None

Color to be used for the NavigationRail's background.

elevationclass-attributeinstance-attribute

elevation: Optional[Number] = None

The z-coordinate to be used for the NavigationRail's elevation.

group_alignmentclass-attributeinstance-attribute

group_alignment: Optional[Number] = None

The alignment for the flet.NavigationRail.destinations as they are positioned within the NavigationRail.

indicator_colorclass-attributeinstance-attribute

indicator_color: Optional[ColorValue] = None

Overrides 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] = None

Overrides the default value of flet.NavigationRail.indicator_shape in all descendant NavigationRail controls.

label_typeclass-attributeinstance-attribute

label_type: Optional[NavigationRailLabelType] = None

The type that defines the layout and behavior of the labels in the NavigationRail.

min_extended_widthclass-attributeinstance-attribute

min_extended_width: Optional[Number] = None

Overrides 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] = None

Overrides 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] = None

Overrides 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] = None

Overrides the default value of flet.NavigationRail.unselected_label_text_style in all descendant NavigationRail controls.

use_indicatorclass-attributeinstance-attribute

use_indicator: Optional[bool] = None

Overrides the default value of flet.NavigationRail.use_indicator in all descendant NavigationRail controls.