NxCustomDrawer constructor

const NxCustomDrawer({
  1. required Map<List, dynamic Function()> drawerOptions,
  2. Key? key,
  3. EdgeInsets? padding,
  4. DrawerHeader? drawerHeader,
  5. TextStyle? optionTextStyle,
  6. bool withSignOutOption = true,
  7. dynamic signOutFunction()?,
  8. TextStyle? signOutTextStyle,
  9. Widget? signOutIcon,
  10. Widget? sequrifyButton,
  11. Color? backgroundColor,
  12. double? drawerWidth,
  13. double? elevation,
})

Creates a custom drawer with navigation options.

  • drawerOptions - Map of navigation options and their callbacks
  • padding - Padding around drawer content (defaults to 22 all around)
  • drawerHeader - Custom header widget (defaults to "Menu" text)
  • optionTextStyle - Text style for navigation options
  • withSignOutOption - Whether to show sign out button (defaults to true)
  • signOutFunction - Callback when sign out is tapped
  • signOutTextStyle - Text style for sign out option
  • signOutIcon - Custom icon for sign out option
  • sequrifyButton - Optional branding button at bottom
  • backgroundColor - Drawer background color
  • drawerWidth - Width of the drawer
  • elevation - Drawer elevation/shadow

Implementation

const NxCustomDrawer({
  required this.drawerOptions,
  super.key,
  this.padding,
  this.drawerHeader,
  this.optionTextStyle,
  this.withSignOutOption = true,
  this.signOutFunction,
  this.signOutTextStyle,
  this.signOutIcon,
  this.sequrifyButton,
  this.backgroundColor,
  this.drawerWidth,
  this.elevation,
});