DrawerScaffold constructor

const DrawerScaffold({
  1. Key? key,
  2. required Widget body,
  3. Widget? drawer,
  4. Widget? endDrawer,
  5. bool drawerEnableOverscrollGesture = true,
  6. bool endDrawerEnableOverscrollGesture = true,
  7. CustomScrollPhysicsController? physicsController,
  8. void onPhysicsControllerChanged()?,
  9. bool checkPhysicsControllerForOverscroll = false,
  10. bool implicitlyOverscrollableBody = false,
  11. bool implicitlyOverscrollableScaffold = false,
  12. ScrollPhysics? implicitPageViewScrollPhysics,
  13. bool drawerEnableOpenDragGesture = true,
  14. bool endDrawerEnableOpenDragGesture = true,
  15. double? drawerEdgeDragWidth,
  16. double? endDrawerEdgeDragWidth,
  17. List<DrawerDragTrigger>? drawerExtraDragTriggers,
  18. List<DrawerDragTrigger>? endDrawerExtraDragTriggers,
  19. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  20. Color? drawerScrimColor,
  21. DrawerCallback? onDrawerChanged,
  22. DrawerCallback? onEndDrawerChanged,
  23. Color? testColorForDrawerDragArea,
  24. Color? testColorForEndDrawerDragArea,
  25. Color? testColorForDrawerDragTriggers,
  26. Color? testColorForEndDrawerDragTriggers,
  27. PreferredSizeWidget? appBar,
  28. Widget? floatingActionButton,
  29. FloatingActionButtonLocation? floatingActionButtonLocation,
  30. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  31. List<Widget>? persistentFooterButtons,
  32. Widget? bottomNavigationBar,
  33. Widget? bottomSheet,
  34. Color? backgroundColor,
  35. bool? resizeToAvoidBottomInset,
  36. bool primary = true,
  37. bool extendBody = false,
  38. bool extendBodyBehindAppBar = false,
  39. String? restorationId,
})

Implementation

const DrawerScaffold({
  Key? key,
  required this.body,
  this.drawer,
  this.endDrawer,
  this.drawerEnableOverscrollGesture = true,
  this.endDrawerEnableOverscrollGesture = true,
  this.physicsController,
  this.onPhysicsControllerChanged,
  this.checkPhysicsControllerForOverscroll = false,
  this.implicitlyOverscrollableBody = false,
  this.implicitlyOverscrollableScaffold = false,
  this.implicitPageViewScrollPhysics,
  this.drawerEnableOpenDragGesture = true,
  this.endDrawerEnableOpenDragGesture = true,
  this.drawerEdgeDragWidth,
  this.endDrawerEdgeDragWidth,
  this.drawerExtraDragTriggers,
  this.endDrawerExtraDragTriggers,
  this.drawerDragStartBehavior = DragStartBehavior.start,
  this.drawerScrimColor,
  this.onDrawerChanged,
  this.onEndDrawerChanged,
  this.testColorForDrawerDragArea,
  this.testColorForEndDrawerDragArea,
  this.testColorForDrawerDragTriggers,
  this.testColorForEndDrawerDragTriggers,
  // ===
  this.appBar,
  this.floatingActionButton,
  this.floatingActionButtonLocation,
  this.floatingActionButtonAnimator,
  this.persistentFooterButtons,
  this.bottomNavigationBar,
  this.bottomSheet,
  this.backgroundColor,
  this.resizeToAvoidBottomInset,
  this.primary = true,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.restorationId,
}) : super(key: key);