NxCustomNavigationDrawer constructor
const
NxCustomNavigationDrawer({
- required List<
Destination> destinations, - Key? key,
- dynamic onDestinationSelected()?,
- int? selectedIndex,
- Destination? signOutDestination,
- TextStyle? optionTextStyle,
- Widget? sequrifyButton,
- Color? backgroundColor,
- double? elevation,
- TextStyle? headerTextStyle,
- Color? shadowColor,
- Color? surfaceTintColor,
- Color? indicatorColor,
- ShapeBorder? indicatorShape,
Creates a Material 3 style navigation drawer.
destinations
- List of navigation destinationsonDestinationSelected
- Callback when destination is selectedselectedIndex
- Currently selected destination indexsignOutDestination
- Optional sign out destination at bottomheaderTextStyle
- Style for "Menu" textoptionTextStyle
- Style for destination labelssequrifyButton
- Optional branding buttonbackgroundColor
- Drawer background colorelevation
- Drawer elevation/shadowshadowColor
- Color of the drawer's shadowsurfaceTintColor
- Color used for surface tintingindicatorColor
- Color of the selection indicatorindicatorShape
- Shape of the selection indicator
Implementation
const NxCustomNavigationDrawer({
required this.destinations,
super.key,
this.onDestinationSelected,
this.selectedIndex,
this.signOutDestination,
this.optionTextStyle,
this.sequrifyButton,
this.backgroundColor,
this.elevation,
this.headerTextStyle,
this.shadowColor,
this.surfaceTintColor,
this.indicatorColor,
this.indicatorShape,
});