ResponsiveNavigationScaffold constructor

const ResponsiveNavigationScaffold({
  1. Key? key,
  2. required List<ResponsiveNavigationDestination> destinations,
  3. required int selectedIndex,
  4. required ValueChanged<int> onDestinationSelected,
  5. required Widget body,
  6. AppBar? appBar,
  7. ResponsiveBreakpoints breakpoints = const ResponsiveBreakpoints(),
  8. FloatingActionButton? floatingActionButton,
  9. FloatingActionButtonLocation? floatingActionButtonLocation,
  10. Widget bottomNavigationBarBuilder(
    1. BuildContext context,
    2. List<BottomNavigationBarItem> items,
    3. int currentIndex,
    4. ValueChanged<int> onTap,
    )?,
  11. Widget navigationRailBuilder(
    1. BuildContext context,
    2. List<NavigationRailDestination> destinations,
    3. int currentIndex,
    4. ValueChanged<int> onTap,
    5. bool extended,
    )?,
  12. Widget largeScreenNavigationBuilder(
    1. BuildContext context,
    2. List<Widget> drawerItems,
    3. int currentIndex,
    4. ValueChanged<int> onTap,
    )?,
  13. bool extendNavigationRail = false,
  14. Widget appBarLeadingBuilder(
    1. BuildContext context,
    2. NavigationType currentNavigationType,
    3. VoidCallback? openDrawerCallback
    )?,
  15. bool autoAdjustAppBarLeading = true,
  16. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  17. List<Widget>? persistentFooterButtons,
  18. Widget? drawer,
  19. Widget? endDrawer,
  20. Color? drawerScrimColor,
  21. Color? backgroundColor,
  22. Widget? bottomSheet,
  23. bool? resizeToAvoidBottomInset,
  24. bool primary = true,
  25. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  26. bool extendBody = false,
  27. bool extendBodyBehindAppBar = false,
  28. double? drawerEdgeDragWidth,
  29. bool drawerEnableOpenDragGesture = true,
  30. bool endDrawerEnableOpenDragGesture = true,
  31. String? restorationId,
})

Implementation

const ResponsiveNavigationScaffold({
  super.key,
  required this.destinations,
  required this.selectedIndex,
  required this.onDestinationSelected,
  required this.body,
  this.appBar,
  this.breakpoints = const ResponsiveBreakpoints(), // Default breakpoints
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.bottomNavigationBarBuilder,
  this.navigationRailBuilder,
  this.largeScreenNavigationBuilder,
  this.extendNavigationRail = false,
  this.appBarLeadingBuilder,
  this.autoAdjustAppBarLeading = true,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.drawer,
  this.endDrawer,
  this.drawerScrimColor,
  this.backgroundColor,
  this.bottomSheet,
  this.resizeToAvoidBottomInset,
  this.primary = true,
  this.drawerDragStartBehavior = DragStartBehavior.start,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.drawerEdgeDragWidth,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
  this.restorationId,
});