WheelDisplay class

Internal widget that handles the layout and rendering of the wheel components.

Inheritance

Constructors

WheelDisplay({Key? key, required AnimationController controller, required List<WheelSegment> segments, required double startRotation, required double endRotation, Widget? centerChild, Widget? indicator, Color? wheelColor, Color? indicatorColor, double? imageHeight, double? imageWidth, WheelLabelStyle? labelStyle, double minSize = 100.0, double maxSize = double.infinity, double aspectRatio = 1.0, Widget? background, bool shouldDrawBackground = true, EdgeInsets slicePadding = EdgeInsets.zero})
Creates a WheelDisplay.
const

Properties

aspectRatio double
Aspect ratio for the wheel (default 1.0).
final
background Widget?
Custom background widget.
final
centerChild Widget?
Optional widget to display in the center hub.
final
controller AnimationController
The AnimationController driving the wheel's rotation.
final
endRotation double
The target end rotation angle.
final
hashCode int
The hash code for this object.
no setterinherited
imageHeight double?
Fixed height for segment images.
final
imageWidth double?
Fixed width for segment images.
final
indicator Widget?
Optional custom indicator widget.
final
indicatorColor Color?
Background color for the default indicator.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelStyle WheelLabelStyle?
Configuration for the label style.
final
maxSize double
Maximum allowed size for the wheel.
final
minSize double
Minimum allowed size for the wheel.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segments List<WheelSegment>
The list of segments to draw.
final
shouldDrawBackground bool
Whether to render the background layer.
final
slicePadding EdgeInsets
Radial padding within segments.
final
startRotation double
The starting rotation angle.
final
wheelColor Color?
Tint color for the default wheel asset.
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