ResponsiveNavigation constructor
const
ResponsiveNavigation({
- Key? key,
- required List<
NavDestination> destinations, - required int selectedIndex,
- required ValueChanged<
int> onChanged, - required Widget body,
- Widget? sidebarHeader,
- bool showLabels = true,
- double drawerWidth = 280.0,
- bool railExtended = false,
- Color? backgroundColor,
- Color? selectedColor,
- Color? unselectedColor,
- double elevation = 0.0,
- ScreenType railBreakpoint = ScreenType.mobile,
- ScreenType sidebarBreakpoint = ScreenType.smallDesktop,
Creates a ResponsiveNavigation.
Implementation
const ResponsiveNavigation({
super.key,
required this.destinations,
required this.selectedIndex,
required this.onChanged,
required this.body,
this.bottomNavBuilder,
this.sidebarFooter,
this.sidebarHeader,
this.showLabels = true,
this.drawerWidth = 280.0,
this.railExtended = false,
this.backgroundColor,
this.selectedColor,
this.unselectedColor,
this.elevation = 0.0,
this.railBreakpoint = ScreenType.mobile,
this.sidebarBreakpoint = ScreenType.smallDesktop,
});