Navigation Rail
A NavigationRail that is suitable for wide screens.
When a non-null state is provided, the rail becomes expandable: a built-in toggle button is shown at the top (aligned to the start when expanded), the rail animates between minWidth and expandedWidth, and its items switch to a horizontal icon-and-label layout with a highlighted pill behind the selected item. When state is null the rail keeps its classic collapsed layout with no toggle button.
Parameters
The modifier to be applied to the NavigationRail.
Controls the expanded/collapsed state; pass a rememberNavigationRailState to make the rail expandable, or null (default) for the classic non-expandable rail. Keep the same nullness across window size changes and drive it via NavigationRailState.expand / NavigationRailState.collapse; flipping between null and non-null at runtime swaps the item layout in a single frame without animation.
The header of the NavigationRail, usually a FloatingActionButton or a logo.
The color of the NavigationRail.
Whether to show the divider line between the NavigationRail and the content.
whether to apply default window insets padding to the NavigationRail.
The minimum width of the NavigationRail, used for the collapsed state.
The width of the NavigationRail when state is expanded.
The accessible description of the built-in toggle while the rail is collapsed; override it to localize the announcement.
The accessible description of the built-in toggle while the rail is expanded; override it to localize the announcement.
The ScrollState of the rail's scrollable content column.
The content of the NavigationRail, usually NavigationRailItems.