Radial Menu Canvas
fun RadialMenuCanvas(center: Offset, dragOffset: Offset, selectionIndex: Int?, items: List<RadialMenuItem>, colors: RadialMenuColors, centerAngle: Float, animationConfig: RadialMenuAnimationConfig, edgeHugPositions: List<Offset>? = null)(source)
The internal drawing logic for the radial menu icons, indicators, and badges.
Since
1.0.0
Parameters
center
The touch origin position.
drag Offset
Current drag delta from center.
selection Index
Index of the currently hovered item, or null.
items
The menu items to draw.
colors
Color configuration.
center Angle
The computed center angle of the menu fan.
animation Config
Animation configuration.
edge Hug Positions
Pre-computed item positions for edge-hug mode, or null for radial.