SmartOverlay constructor

const SmartOverlay({
  1. Key? key,
  2. required Widget child(
    1. VoidCallback openOverlay
    ),
  3. required Widget overlayContent(
    1. VoidCallback closeOverlay
    ),
  4. Color? backgroundColor,
  5. int? horizontalPadding,
  6. int? verticalPadding,
  7. VoidCallback? onOpened,
  8. bool blurBackground = false,
  9. double? blurOpacity,
  10. Duration animationDuration = const Duration(milliseconds: 300),
  11. Curve animationCurve = Curves.easeInOut,
  12. 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});