ZoomDrawer constructor
const
ZoomDrawer({
- required Widget mainScreen,
- DrawerStyle style = DrawerStyle.defaultStyle,
- ZoomDrawerController? controller,
- double mainScreenScale = 0.3,
- double slideWidth = 275.0,
- double slideHeight = 0,
- double borderRadius = 16.0,
- double angle = -12.0,
- double dragOffset = 60.0,
- double openDragSensitivity = 425,
- double closeDragSensitivity = 425,
- Color drawerShadowsBackgroundColor = const Color(0xffffffff),
- Color? mainScreenOverlayColor,
- BlendMode overlayBlend = BlendMode.srcATop,
- double? overlayBlur,
- Color? shadowLayer1Color,
- Color? shadowLayer2Color,
- bool showShadow = false,
- Curve openCurve = const Interval(0.0, 1.0, curve: Curves.easeOut),
- Curve closeCurve = const Interval(0.0, 1.0, curve: Curves.easeOut),
- Duration duration = const Duration(milliseconds: 250),
- Duration reverseDuration = const Duration(milliseconds: 250),
- bool androidCloseOnBackTap = false,
- bool moveMenuScreen = true,
- bool disableDragGesture = false,
- bool isRtl = false,
- bool clipMainScreen = true,
- bool mainScreenTapClose = false,
- bool mainScreenAbsorbPointer = true,
- bool shrinkMainScreen = false,
- List<
BoxShadow> ? boxShadow, - 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,
});