CircularMenu class

Inheritance

Constructors

CircularMenu.new({required List<CircularMenuItem> items, Alignment alignment = Alignment.bottomCenter, double radius = 100, Widget? backgroundWidget, Duration animationDuration = const Duration(milliseconds: 500), Curve curve = Curves.bounceOut, Curve reverseCurve = Curves.fastOutSlowIn, VoidCallback? toggleButtonOnPressed, Color? toggleButtonColor, List<BoxShadow>? toggleButtonBoxShadow, double toggleButtonMargin = 10, double toggleButtonPadding = 10, double toggleButtonSize = 40, Color? toggleButtonIconColor, AnimatedIconData toggleButtonAnimatedIconData = AnimatedIcons.menu_close, GlobalKey<CircularMenuState>? key, double? startingAngleInRadian, double? endingAngleInRadian, Duration alignAnimationDuration = Duration.zero, bool isDraggable = false, ({double x, double y}) stepSize = (x: 0.1, y: 0.1)})
creates a circular menu with specific radius and alignment . toggleButtonElevation ,toggleButtonPadding and toggleButtonMargin must be equal or greater than zero. items must not be null and it must contains two elements at least.

Properties

alignAnimationDuration Duration
final
alignment Alignment
menu alignment
final
animationDuration Duration
animation duration
final
backgroundWidget Widget?
widget holds actual page content
final
curve Curve
animation curve in forward
final
endingAngleInRadian double?
ending angle in clockwise radian
final
hashCode int
The hash code for this object.
no setterinherited
isDraggable bool
should the menu be draggable
final
items List<CircularMenuItem>
list of CircularMenuItem contains at least two items.
final
key GlobalKey<CircularMenuState>?
use global key to control animation anywhere in the code
final
radius double
menu radius
final
reverseCurve Curve
animation curve in rverse
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startingAngleInRadian double?
staring angle in clockwise radian
final
stepSize → ({double x, double y})
step size for dragging
final
toggleButtonAnimatedIconData AnimatedIconData
final
toggleButtonBoxShadow List<BoxShadow>?
final
toggleButtonColor Color?
final
toggleButtonIconColor Color?
final
toggleButtonMargin double
final
toggleButtonOnPressed VoidCallback?
callback
final
toggleButtonPadding double
final
toggleButtonSize double
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() CircularMenuState
Creates the mutable state for this widget at a given location in the tree.
override
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