NxCustomDrawer constructor
const
NxCustomDrawer({
- required Map<
List, dynamic Function()> drawerOptions, - Key? key,
- EdgeInsets? padding,
- DrawerHeader? drawerHeader,
- TextStyle? optionTextStyle,
- bool withSignOutOption = true,
- dynamic signOutFunction()?,
- TextStyle? signOutTextStyle,
- Widget? signOutIcon,
- Widget? sequrifyButton,
- Color? backgroundColor,
- double? drawerWidth,
- double? elevation,
Creates a custom drawer with navigation options.
drawerOptions
- Map of navigation options and their callbackspadding
- Padding around drawer content (defaults to 22 all around)drawerHeader
- Custom header widget (defaults to "Menu" text)optionTextStyle
- Text style for navigation optionswithSignOutOption
- Whether to show sign out button (defaults to true)signOutFunction
- Callback when sign out is tappedsignOutTextStyle
- Text style for sign out optionsignOutIcon
- Custom icon for sign out optionsequrifyButton
- Optional branding button at bottombackgroundColor
- Drawer background colordrawerWidth
- Width of the drawerelevation
- 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,
});