NavigationDrawer constructor
- Key? key,
- required List<
Widget> children, - Color? backgroundColor,
- Color? shadowColor,
- Color? surfaceTintColor,
- double? elevation,
- Color? indicatorColor,
- ShapeBorder? indicatorShape,
- ValueChanged<
int> ? onDestinationSelected, - int? selectedIndex = 0,
- 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),
});