VooQuickActionsMenuContent class

Menu content for quick actions dropdown

Inheritance

Constructors

VooQuickActionsMenuContent({Key? key, VooQuickActionsStyle? style, required double width, bool useGridLayout = false, int gridColumns = 4, bool showLabelsInGrid = true, required List<VooQuickAction> actions, Widget actionBuilder(VooQuickAction, VoidCallback onTap)?, required void onActionTap(VooQuickAction), void onReorderActions(List<VooQuickAction> reorderedActions)?, String? title, bool showCloseButton = false, VoidCallback? onClose, EdgeInsetsGeometry? contentPadding, double gridSpacing = 8.0, double gridItemHeight = 100.0})
const

Properties

actionBuilder Widget Function(VooQuickAction, VoidCallback onTap)?
Custom action builder
final
actions List<VooQuickAction>
List of quick actions
final
contentPadding EdgeInsetsGeometry?
Padding for the actions content area. Defaults to EdgeInsets.all(16) for grid layout and EdgeInsets.symmetric(vertical: 8) for list layout.
final
gridColumns int
Number of columns in grid layout (default: 4, only used when useGridLayout is true)
final
gridItemHeight double
Default height for grid items. Only used when useGridLayout is true. Individual items can override this via VooQuickAction.gridHeight. Defaults to 100.
final
gridSpacing double
Spacing between grid items. Only used when useGridLayout is true. Defaults to 8.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onActionTap → void Function(VooQuickAction)
Callback when an action is tapped
final
onClose VoidCallback?
Callback when the close button is tapped
final
onReorderActions → void Function(List<VooQuickAction> reorderedActions)?
Callback when actions are reordered. If provided, enables drag-to-reorder.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCloseButton bool
Whether to show a close button in the header
final
showLabelsInGrid bool
Whether to show labels in grid layout (default: true, only used when useGridLayout is true)
final
style VooQuickActionsStyle?
Style configuration
final
title String?
Optional title displayed at the top of the menu
final
useGridLayout bool
Whether to use grid layout (default: false)
final
width double
Width of the dropdown
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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