ModalWideNavigationRail
Material design modal wide navigation rail.
Wide navigation rails provide access to primary destinations in apps when using tablet and desktop screens.
The modal wide navigation rail should be used to display multiple WideNavigationRailItems, each representing a singular app destination, and, optionally, a header containing a menu button, a FloatingActionButton, and/or a logo. Each destination is typically represented by an icon and a text label.
The ModalWideNavigationRail when collapsed behaves like a collapsed WideNavigationRail. When expanded, the modal wide navigation rail blocks interaction with the rest of an app’s content with a scrim. It is elevated above the app’s UI and doesn't affect the screen’s layout grid. That can be achieved like so:
Parameters
the Modifier to be applied to this wide navigation rail
the WideNavigationRailState of this wide navigation rail
whether this wide navigation rail should slide offscreen when it collapses and be hidden, or stay on screen as a collapsed wide navigation rail (default)
the shape of this wide navigation rail's container when it's collapsed
the shape of this wide navigation rail's container when it's expanded
WideNavigationRailColors that will be used to resolve the colors used for this wide navigation rail. See WideNavigationRailDefaults.colors
optional header that may hold a FloatingActionButton or a logo
the padding to be applied to the top of the rail. It's usually needed in order to align the content of the rail between the collapsed and expanded animation
a window insets of the wide navigation rail
the Arrangement.Vertical of this wide navigation rail
ModalWideNavigationRailProperties for further customization of the expanded modal wide navigation rail's window behavior
the content of this modal wide navigation rail, usually WideNavigationRailItems