NavigationRailDestination
Represents a destination in a NavigationRail.
Inherits: Control
Properties
icon- The name of the icon orControlof the destination.indicator_color- The color of the indicator_shape when this destination is selected.indicator_shape- The shape of the selection indicator.label- A string or Control representing the destination's label.padding- The amount of space to inset the destination item.selected_icon- The name of alternative icon orControldisplayed when this destination is selected.
Properties
iconclass-attributeinstance-attribute
icon: Optional[IconDataOrControl] = NoneThe name of the icon or Control of the destination.
If selected_icon is provided, this will only be displayed when the destination is
not selected.
To make the NavigationRail more accessible, consider choosing an icon with a stroked
and filled version, such as Icons.CLOUD and Icons.CLOUD_QUEUE. The icon
should be set to the stroked version and selected_icon to the filled version.
indicator_colorclass-attributeinstance-attribute
indicator_color: Optional[ColorValue] = NoneThe color of the indicator_shape when this destination is selected.
indicator_shapeclass-attributeinstance-attribute
indicator_shape: Optional[OutlinedBorder] = NoneThe shape of the selection indicator.
labelclass-attributeinstance-attribute
label: Optional[StrOrControl] = NoneA string or Control representing the destination's label.
paddingclass-attributeinstance-attribute
padding: Optional[PaddingValue] = NoneThe amount of space to inset the destination item.
selected_iconclass-attributeinstance-attribute
selected_icon: Optional[IconDataOrControl] = NoneThe name of alternative icon or Control displayed when this destination is selected.
If this icon is not provided, the NavigationRail will display icon in either
state.