NavigationDrawer constructor

const NavigationDrawer({
  1. Key? key,
  2. required List<Widget> children,
  3. Widget? header,
  4. Widget? footer,
  5. Color? backgroundColor,
  6. Color? shadowColor,
  7. Color? surfaceTintColor,
  8. double? elevation,
  9. Color? indicatorColor,
  10. ShapeBorder? indicatorShape,
  11. ValueChanged<int>? onDestinationSelected,
  12. int? selectedIndex = 0,
  13. EdgeInsetsGeometry tilePadding = const EdgeInsets.symmetric(horizontal: 12.0),
})

Creates a Material Design Navigation Drawer component.

Implementation

const NavigationDrawer({
  super.key,
  required this.children,
  this.header,
  this.footer,
  this.backgroundColor,
  this.shadowColor,
  this.surfaceTintColor,
  this.elevation,
  this.indicatorColor,
  this.indicatorShape,
  this.onDestinationSelected,
  this.selectedIndex = 0,
  this.tilePadding = const EdgeInsets.symmetric(horizontal: 12.0),
});