ZoomDrawer constructor

const ZoomDrawer({
  1. required Widget menuScreen,
  2. required Widget mainScreen,
  3. DrawerStyle style = DrawerStyle.defaultStyle,
  4. ZoomDrawerController? controller,
  5. double mainScreenScale = 0.3,
  6. double slideWidth = 275.0,
  7. double slideHeight = 0,
  8. double? menuScreenWidth,
  9. double borderRadius = 16.0,
  10. double angle = -12.0,
  11. double dragOffset = 60.0,
  12. double openDragSensitivity = 425,
  13. double closeDragSensitivity = 425,
  14. Color drawerShadowsBackgroundColor = const Color(0xffffffff),
  15. Color menuBackgroundColor = Colors.transparent,
  16. Color? mainScreenOverlayColor,
  17. Color? menuScreenOverlayColor,
  18. BlendMode overlayBlend = BlendMode.srcATop,
  19. double? overlayBlur,
  20. Color? shadowLayer1Color,
  21. Color? shadowLayer2Color,
  22. bool showShadow = false,
  23. Curve openCurve = const Interval(0.0, 1.0, curve: Curves.easeOut),
  24. Curve closeCurve = const Interval(0.0, 1.0, curve: Curves.easeOut),
  25. Duration duration = const Duration(milliseconds: 250),
  26. Duration reverseDuration = const Duration(milliseconds: 250),
  27. bool androidCloseOnBackTap = false,
  28. bool moveMenuScreen = true,
  29. bool disableDragGesture = false,
  30. bool isRtl = false,
  31. bool clipMainScreen = true,
  32. bool mainScreenTapClose = false,
  33. bool menuScreenTapClose = false,
  34. bool mainScreenAbsorbPointer = true,
  35. bool shrinkMainScreen = false,
  36. List<BoxShadow>? boxShadow,
  37. DrawerStyleBuilder? drawerStyleBuilder,
})

Implementation

const ZoomDrawer({
  required this.menuScreen,
  required this.mainScreen,
  this.style = DrawerStyle.defaultStyle,
  this.controller,
  this.mainScreenScale = 0.3,
  this.slideWidth = 275.0,
  this.slideHeight = 0,
  this.menuScreenWidth,
  this.borderRadius = 16.0,
  this.angle = -12.0,
  this.dragOffset = 60.0,
  this.openDragSensitivity = 425,
  this.closeDragSensitivity = 425,
  this.drawerShadowsBackgroundColor = const Color(0xffffffff),
  this.menuBackgroundColor = Colors.transparent,
  this.mainScreenOverlayColor,
  this.menuScreenOverlayColor,
  this.overlayBlend = BlendMode.srcATop,
  this.overlayBlur,
  this.shadowLayer1Color,
  this.shadowLayer2Color,
  this.showShadow = false,
  this.openCurve = const Interval(0.0, 1.0, curve: Curves.easeOut),
  this.closeCurve = const Interval(0.0, 1.0, curve: Curves.easeOut),
  this.duration = const Duration(milliseconds: 250),
  this.reverseDuration = const Duration(milliseconds: 250),
  this.androidCloseOnBackTap = false,
  this.moveMenuScreen = true,
  this.disableDragGesture = false,
  this.isRtl = false,
  this.clipMainScreen = true,
  this.mainScreenTapClose = false,
  this.menuScreenTapClose = false,
  this.mainScreenAbsorbPointer = true,
  this.shrinkMainScreen = false,
  this.boxShadow,
  this.drawerStyleBuilder,
});