SmartOverlay constructor
const
SmartOverlay({
- Key? key,
- required Widget child(
- VoidCallback openOverlay
- required Widget overlayContent(
- VoidCallback closeOverlay
- Color? backgroundColor,
- int? horizontalPadding,
- int? verticalPadding,
- VoidCallback? onOpened,
- bool blurBackground = false,
- double? blurOpacity,
- Duration animationDuration = const Duration(milliseconds: 300),
- Curve animationCurve = Curves.easeInOut,
- AnimationType animationType = AnimationType.none,
Implementation
const SmartOverlay(
{super.key,
required this.child,
required this.overlayContent,
this.backgroundColor,
this.horizontalPadding,
this.verticalPadding,
this.onOpened,
this.blurBackground = false,
this.blurOpacity,
this.animationDuration = const Duration(milliseconds: 300),
this.animationCurve = Curves.easeInOut,
this.animationType = AnimationType.none});