SContextMenuTheme constructor
const
SContextMenuTheme({
- bool showArrow = false,
- double panelBorderRadius = 12,
- double panelBlurSigma = 14,
- EdgeInsets panelPadding = const EdgeInsets.symmetric(vertical: 6),
- Color? panelBackgroundColor,
- Color? panelBorderColor,
- List<
BoxShadow> ? panelShadows, - ArrowShape arrowShape = ArrowShape.curved,
- double arrowBaseWidth = 12,
- double arrowCornerRadius = 6,
- double arrowTipGap = 2,
- double arrowMaxLength = 3,
- double arrowTipRoundness = 2,
- Duration showDuration = const Duration(milliseconds: 170),
- Duration hideDuration = const Duration(milliseconds: 120),
- Color? iconColor,
- Color? destructiveColor,
- Color? hoverColor,
- 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,
});