PopButton constructor
PopButton({
- Key? key,
- required Widget child,
- CustomPopupMenuController? popCtrl,
- Color arrowColor = const Color(0xFF1B72EC),
- bool showArrow = true,
- Color barrierColor = Colors.transparent,
- double arrowSize = 10.0,
- double horizontalMargin = 10.0,
- double verticalMargin = 10.0,
- PressType pressType = PressType.singleClick,
- Color dividingLineColor = const Color(0xFFF0F0F0),
- 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);