ShadContextMenuTheme class

Annotations

Constructors

ShadContextMenuTheme.new({bool merge = true, BoxConstraints? constraints, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? leadingPadding, EdgeInsetsGeometry? trailingPadding, EdgeInsetsGeometry? itemPadding, EdgeInsetsGeometry? insetPadding, ShadAnchorBase? anchor, Duration? showDelay, double? height, ShadButtonVariant? buttonVariant, ShadDecoration? decoration, TextStyle? textStyle, TextStyle? trailingTextStyle, BoxConstraints? itemConstraints, EdgeInsetsGeometry? subMenuPadding, Color? backgroundColor, Color? selectedBackgroundColor, bool? closeOnTap, List<Effect>? effects, List<BoxShadow>? shadows, ShadDecoration? itemDecoration, ImageFilter? filter})
const

Properties

anchor ShadAnchorBase?
The anchor of the context menu item, defaults to
final
backgroundColor Color?
The background color of the context menu item, defaults to null.
final
buttonVariant ShadButtonVariant?
The variant of the button of the context menu item, defaults to ShadButtonVariant.ghost.
final
closeOnTap bool?
Whether the context menu should be closed when the item is tapped, defaults to true when items is empty, otherwise false.
final
constraints BoxConstraints?
The constraints of the context menu, defaults to BoxConstraints(minWidth: 128).
final
decoration ShadDecoration?
The decoration of the popover.
final
effects List<Effect>?
The animation effects applied to the popover. Defaults to FadeEffect(), ScaleEffect(begin: Offset(.95, .95), end: Offset(1, 1)), MoveEffect(begin: Offset(0, 2), end: Offset(0, 0)).
final
filter ImageFilter?
The filter of the popover, defaults to null.
final
hashCode int
The hash code for this object.
no setteroverride
height double?
The height of the context menu item, defaults to 32.
final
insetPadding EdgeInsetsGeometry?
The padding of the context menu item when it is inset, defaults to EdgeInsets.only(left: 32, right: 8) when the variant is inset, otherwise EdgeInsets.symmetric(horizontal: 8)
final
itemConstraints BoxConstraints?
The constraints of the context menu, defaults to BoxConstraints(minWidth: 128).
final
itemDecoration ShadDecoration?
The decoration of the context menu item, defaults to ShadDecoration(secondaryBorder: ShadBorder.none).
final
itemPadding EdgeInsetsGeometry?
The padding of the context menu item, defaults to EdgeInsets.symmetric(horizontal: 4).
final
leadingPadding EdgeInsetsGeometry?
The padding of the leading widget, defaults to EdgeInsets.only(right: 8).
final
merge bool
final
padding EdgeInsetsGeometry?
The padding of the context menu, defaults to EdgeInsets.symmetric(vertical: 4).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBackgroundColor Color?
The background color of the context menu item when it is selected, defaults to theme.colorScheme.accent.
final
shadows List<BoxShadow>?
The shadows applied to the popover, defaults to ShadShadows.md.
final
showDelay Duration?
The delay before the context menu is shown, defaults to 100ms.
final
The padding of the context menu, defaults to EdgeInsets.symmetric(vertical: 4).
final
textStyle TextStyle?
The text style of the context menu item, defaults to small.copyWith(fontWeight: FontWeight.normal).
final
trailingPadding EdgeInsetsGeometry?
The padding of the trailing widget, defaults to EdgeInsets.only(left: 8).
final
trailingTextStyle TextStyle?
The text style of the trailing widget, defaults to muted.copyWith(fontSize: 12, height: 1).
final

Methods

copyWith({bool? merge, BoxConstraints? constraints, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? leadingPadding, EdgeInsetsGeometry? trailingPadding, EdgeInsetsGeometry? itemPadding, EdgeInsetsGeometry? insetPadding, ShadAnchorBase? anchor, Duration? showDelay, double? height, ShadButtonVariant? buttonVariant, ShadDecoration? decoration, TextStyle? textStyle, TextStyle? trailingTextStyle, BoxConstraints? itemConstraints, EdgeInsetsGeometry? subMenuPadding, Color? backgroundColor, Color? selectedBackgroundColor, bool? closeOnTap, List<Effect>? effects, List<BoxShadow>? shadows, ShadDecoration? itemDecoration, ImageFilter? filter}) ShadContextMenuTheme
mergeWith(ShadContextMenuTheme? other) ShadContextMenuTheme
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override