CircleBnbController class

Constructors

CircleBnbController(CircleBNB widget)
Constructor to initialize the controller.

Properties

angleListPi List<double>
List of target rotation angles for each item.
final
angleListPi2 List<double>
List of angles used for detecting item transitions during drag.
final
circleBNB CircleBNBModel
Geometric model for calculating item positions on the circle.
final
colorList List<Color>
List of colors for the navigation items.
final
data ValueNotifier<double>
The current rotation angle of the circular menu in radians.
final
hashCode int
The hash code for this object.
no setterinherited
isDone ValueNotifier<bool>
Tracks if the drag gesture is finished to trigger animations.
final
isLinearLayout ValueNotifier<bool>
Toggles between linear and circular navigation styles.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topIndex ValueNotifier<int>
The index of the item currently at the top (active).
final
widget CircleBNB
Reference to the parent CircleBNB widget to access its properties.
final

Methods

clickState(int clickedIndex) → void
Rotates the menu to the selected item when it's clicked.
cyclingMechanic(DragUpdateDetails details) → void
Handles the rotation logic during a horizontal drag gesture.
dispose() → void
Disposes the ValueNotifiers to free up resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCenterTextTap() → void
Handles tap on the center text, resetting the wheel to the first item.
onDragEnd(DragEndDetails details) → void
Called when a drag gesture ends.
onDragStart(DragStartDetails details) → void
Called when a drag gesture starts.
toString() String
A string representation of this object.
inherited

Operators

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