NavigationDrawer constructor

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

Creates a Material Design Navigation Drawer component.

Implementation

const NavigationDrawer({
  super.key,
  required this.children,
  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),
});