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, List<VooQuickAction> actions = const [], List<VooQuickActionSection>? sections, double sectionSpacing = 16.0, 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, bool expandItems = false, bool? isExpanded, double? height})
const

Properties

actionBuilder → Widget Function(VooQuickAction, VoidCallback onTap)?
Custom action builder
final
actions → List<VooQuickAction>
List of quick actions (used when sections is not provided)
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
expandItems → bool
Whether items should expand to fill available space. When true, items will grow to fill the container height. Defaults to false.
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
height → double?
Fixed height for the menu content. When provided, the menu will use this exact height instead of sizing to content.
final
isExpanded → bool?
Whether the menu should expand to fill available space.
final
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
sections → List<VooQuickActionSection>?
List of action sections with labels and horizontal scrolling. When provided, this takes precedence over actions.
final
sectionSpacing → double
Spacing between sections when using sections. Defaults to 16.
final
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