NxCustomNavigationDrawer constructor

const NxCustomNavigationDrawer({
  1. required List<Destination> destinations,
  2. Key? key,
  3. dynamic onDestinationSelected(
    1. int
    )?,
  4. int? selectedIndex,
  5. Destination? signOutDestination,
  6. TextStyle? optionTextStyle,
  7. Widget? sequrifyButton,
  8. Color? backgroundColor,
  9. double? elevation,
  10. TextStyle? headerTextStyle,
  11. Color? shadowColor,
  12. Color? surfaceTintColor,
  13. Color? indicatorColor,
  14. ShapeBorder? indicatorShape,
})

Creates a Material 3 style navigation drawer.

  • destinations - List of navigation destinations
  • onDestinationSelected - Callback when destination is selected
  • selectedIndex - Currently selected destination index
  • signOutDestination - Optional sign out destination at bottom
  • headerTextStyle - Style for "Menu" text
  • optionTextStyle - Style for destination labels
  • sequrifyButton - Optional branding button
  • backgroundColor - Drawer background color
  • elevation - Drawer elevation/shadow
  • shadowColor - Color of the drawer's shadow
  • surfaceTintColor - Color used for surface tinting
  • indicatorColor - Color of the selection indicator
  • indicatorShape - 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,
});