navigationRailLabelType property
Defines the layout and behavior of the labels for the un-extended NavigationRail.
The type are:
- NavigationRailLabelType.none labels on rail items are never shown.
- NavigationRailLabelType.selected label is only shown on selected rail item.
- NavigationRailLabelType.all label is shown on all rail items.
When a navigation rail is extended
, the labels are always shown.
Default to NavigationRailLabelType.all. FlexColorScheme uses all so that it by default will match the behavior on NavigationBar.
If set to null it will default Flutter SDK default behavior NavigationRailLabelType.none.
Implementation
final NavigationRailLabelType? navigationRailLabelType;