DrawerScaffold constructor

DrawerScaffold({
  1. PreferredSizeWidget? appBar,
  2. Widget? body,
  3. List<BoxShadow> contentShadow = const [BoxShadow(color: const Color(0x44000000), offset: const Offset(0.0, 5.0), blurRadius: 20.0, spreadRadius: 10.0)],
  4. List<SideDrawer>? drawers,
  5. double? cornerRadius = 16.0,
  6. DrawerScaffoldController? controller,
  7. bool extendedBody = false,
  8. Widget? bottomNavigationBar,
  9. FloatingActionButtonLocation? floatingActionButtonLocation,
  10. Widget? floatingActionButton,
  11. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  12. ScreenBuilder? builder,
  13. bool? enableGestures = true,
  14. Direction defaultDirection = Direction.left,
  15. Key? key,
  16. Widget? bottomSheet,
  17. bool extendBodyBehindAppBar = false,
  18. List<Widget>? persistentFooterButtons,
  19. bool primary = true,
  20. bool? resizeToAvoidBottomInset,
  21. dynamic onSlide(
    1. SideDrawer,
    2. double
    )?,
  22. dynamic onOpened(
    1. SideDrawer
    )?,
  23. dynamic onClosed(
    1. SideDrawer
    )?,
  24. Color? backgroundColor,
})

Implementation

DrawerScaffold({
  this.appBar,
  this.body,
  this.contentShadow = const [
    BoxShadow(
      color: const Color(0x44000000),
      offset: const Offset(0.0, 5.0),
      blurRadius: 20.0,
      spreadRadius: 10.0,
    ),
  ],
  this.drawers,
  this.cornerRadius = 16.0,
  this.controller,
  this.extendedBody = false,
  this.bottomNavigationBar,
  this.floatingActionButtonLocation,
  this.floatingActionButton,
  this.floatingActionButtonAnimator,
  this.builder,
  this.enableGestures = true,
  this.defaultDirection = Direction.left,
  Key? key,
  this.bottomSheet,
  this.extendBodyBehindAppBar = false,
  this.persistentFooterButtons,
  this.primary = true,
  this.resizeToAvoidBottomInset,
  this.onSlide,
  this.onOpened,
  this.onClosed,
  this.backgroundColor,
})  : assert((drawers?.where((element) => element.peekMenu).length ?? 0) < 2,
          "\n\nOnly can have one SideDrawer with peek menu\n"),
      assert(body == null || builder == null, "Use either child or builder"),
      super(key: key);