MyPopupMenu constructor
const
MyPopupMenu({
- Key? key,
- required Widget child,
- required WidgetBuilder builder,
- PopupDirection direction = PopupDirection.bottom,
- double width = 200,
- double height = 100,
- Color color = Colors.white,
- double borderRadius = 8.0,
- double arrowHeight = 10.0,
- double arrowWidth = 20.0,
- BoxShadow? boxShadow,
- Color overlayColor = Colors.transparent,
- double overlayBlur = 0.0,
- bool excludeChildFromBlur = false,
- PopupAnimationType animationType = PopupAnimationType.fade,
- Duration animationDuration = const Duration(milliseconds: 300),
- 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,
});