MyPopupMenu constructor

const MyPopupMenu({
  1. Key? key,
  2. required Widget child,
  3. required WidgetBuilder builder,
  4. PopupDirection direction = PopupDirection.bottom,
  5. double width = 200,
  6. double height = 100,
  7. Color color = Colors.white,
  8. double borderRadius = 8.0,
  9. double arrowHeight = 10.0,
  10. double arrowWidth = 20.0,
  11. BoxShadow? boxShadow,
  12. Color overlayColor = Colors.transparent,
  13. double overlayBlur = 0.0,
  14. bool excludeChildFromBlur = false,
  15. PopupAnimationType animationType = PopupAnimationType.fade,
  16. Duration animationDuration = const Duration(milliseconds: 300),
  17. bool slideReverse = false,
})

Implementation

const MyPopupMenu({
  super.key,
  required this.child,
  required this.builder,
  this.direction = PopupDirection.bottom,
  this.width = 200,
  this.height = 100,
  this.color = Colors.white,
  this.borderRadius = 8.0,
  this.arrowHeight = 10.0,
  this.arrowWidth = 20.0,
  this.boxShadow,
  this.overlayColor = Colors.transparent, // Fully invisible by default.
  this.overlayBlur = 0.0,
  this.excludeChildFromBlur = false,
  this.animationType = PopupAnimationType.fade,
  this.animationDuration = const Duration(milliseconds: 300),
  this.slideReverse = false,
});