AdaptiveNavigationScaffold constructor

const AdaptiveNavigationScaffold({
  1. Key? key,
  2. PreferredSizeWidget? appBar,
  3. required Widget body,
  4. FloatingActionButton? floatingActionButton,
  5. FloatingActionButtonLocation? floatingActionButtonLocation,
  6. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  7. List<Widget>? persistentFooterButtons,
  8. Widget? endDrawer,
  9. Widget? bottomSheet,
  10. Color? backgroundColor,
  11. bool? resizeToAvoidBottomInset,
  12. bool primary = true,
  13. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  14. bool extendBody = false,
  15. bool extendBodyBehindAppBar = false,
  16. Color? drawerScrimColor,
  17. double? drawerEdgeDragWidth,
  18. bool drawerEnableOpenDragGesture = true,
  19. bool endDrawerEnableOpenDragGesture = true,
  20. required int selectedIndex,
  21. required List<AdaptiveScaffoldDestination> destinations,
  22. ValueChanged<int>? onDestinationSelected,
  23. NavigationTypeResolver? navigationTypeResolver,
  24. Widget? drawerHeader,
  25. Widget? drawerFooter,
  26. bool fabInRail = true,
  27. bool includeBaseDestinationsInMenu = true,
  28. int bottomNavigationOverflow = 5,
})

Implementation

const AdaptiveNavigationScaffold({
  super.key,
  this.appBar,
  required this.body,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.endDrawer,
  this.bottomSheet,
  this.backgroundColor,
  this.resizeToAvoidBottomInset,
  this.primary = true,
  this.drawerDragStartBehavior = DragStartBehavior.start,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.drawerScrimColor,
  this.drawerEdgeDragWidth,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
  required this.selectedIndex,
  required this.destinations,
  this.onDestinationSelected,
  this.navigationTypeResolver,
  this.drawerHeader,
  this.drawerFooter,
  this.fabInRail = true,
  this.includeBaseDestinationsInMenu = true,
  this.bottomNavigationOverflow = 5,
});