PopButton constructor

PopButton({
  1. Key? key,
  2. required List<PopMenuInfo> menus,
  3. required Widget child,
  4. CustomPopupMenuController? popCtrl,
  5. Color arrowColor = const Color(0xFF1B72EC),
  6. bool showArrow = true,
  7. Color barrierColor = Colors.transparent,
  8. double arrowSize = 10.0,
  9. double horizontalMargin = 10.0,
  10. double verticalMargin = 10.0,
  11. PressType pressType = PressType.singleClick,
  12. Color menuBgColor = const Color(0xFF1B72EC),
  13. double menuBgRadius = 10.0,
  14. Color? menuBgShadowColor,
  15. Offset? menuBgShadowOffset,
  16. double? menuBgShadowBlurRadius,
  17. double? menuBgShadowSpreadRadius,
  18. double? menuItemHeight,
  19. double? menuItemWidth,
  20. TextStyle menuItemTextStyle = const TextStyle(fontSize: 14, color: Colors.white),
  21. double menuItemIconSize = 18.0,
  22. EdgeInsetsGeometry? menuItemPadding,
  23. Color dividingLineColor = const Color(0xFFF0F0F0),
  24. double dividingLineWidth = 1.0,
})

Implementation

PopButton({
  Key? key,
  required this.menus,
  required this.child,
  // required this.builder,
  this.popCtrl,
  this.arrowColor = const Color(0xFF1B72EC),
  this.showArrow = true,
  this.barrierColor = Colors.transparent,
  this.arrowSize = 10.0,
  this.horizontalMargin = 10.0,
  this.verticalMargin = 10.0,
  this.pressType = PressType.singleClick,
  this.menuBgColor = const Color(0xFF1B72EC),
  this.menuBgRadius = 10.0,
  this.menuBgShadowColor,
  this.menuBgShadowOffset,
  this.menuBgShadowBlurRadius,
  this.menuBgShadowSpreadRadius,
  this.menuItemHeight,
  this.menuItemWidth,
  this.menuItemTextStyle = const TextStyle(
    fontSize: 14,
    color: Colors.white,
  ),
  this.menuItemIconSize = 18.0,
  this.menuItemPadding,
  this.dividingLineColor = const Color(0xFFF0F0F0),
  this.dividingLineWidth = 1.0,
}) : super(key: key);