SContextMenuTheme constructor

const SContextMenuTheme({
  1. bool showArrow = false,
  2. double panelBorderRadius = 12,
  3. double panelBlurSigma = 14,
  4. EdgeInsets panelPadding = const EdgeInsets.symmetric(vertical: 6),
  5. Color? panelBackgroundColor,
  6. Color? panelBorderColor,
  7. List<BoxShadow>? panelShadows,
  8. ArrowShape arrowShape = ArrowShape.curved,
  9. double arrowBaseWidth = 12,
  10. double arrowCornerRadius = 6,
  11. double arrowTipGap = 2,
  12. double arrowMaxLength = 3,
  13. double arrowTipRoundness = 2,
  14. Duration showDuration = const Duration(milliseconds: 170),
  15. Duration hideDuration = const Duration(milliseconds: 120),
  16. Color? iconColor,
  17. Color? destructiveColor,
  18. Color? hoverColor,
  19. Color? arrowColor,
})

Implementation

const SContextMenuTheme({
  this.showArrow = false,
  this.panelBorderRadius = 12,
  this.panelBlurSigma = 14,
  this.panelPadding = const EdgeInsets.symmetric(vertical: 6),
  this.panelBackgroundColor,
  this.panelBorderColor,
  this.panelShadows,
  this.arrowShape = ArrowShape.curved,
  this.arrowBaseWidth = 12,
  this.arrowCornerRadius = 6,
  this.arrowTipGap = 2,
  this.arrowMaxLength = 3,
  this.arrowTipRoundness = 2,
  this.showDuration = const Duration(milliseconds: 170),
  this.hideDuration = const Duration(milliseconds: 120),
  this.iconColor,
  this.destructiveColor,
  this.hoverColor,
  this.arrowColor,
});