WheelOverlayEntryContent class

WheelOverlayEntryContent is the content of the Overlay that we want to show. With this setup, on can use WheelOverlayEntryContent separately from the main WheelColorPicker widget.

Also it saves some computation such that it only has to be built once when parent widget is initializing, after the first time, parent widget just has to pump new OverlayEntry with this as the content

Inheritance

Constructors

WheelOverlayEntryContent({Key? key, required List<List<Color>> colors, required void onSelect(Color), required double pieceHeight, required AnimationController animationController, double pieceBorderSize = 0, Function? hideOverlay, Alignment alignment = Alignment.topLeft, double padding = 0, double innerRadius = 0, FanAnimationConfig animationConfig = const FanAnimationConfig(), LayerLinkConfig layerLinkConfig = const LayerLinkConfig(), bool debugMode = false})
const

Properties

alignment Alignment
final
animationConfig FanAnimationConfig
WheelOverlayEntry uses FanAnimationConfig to determine open and close animation
final
animationController AnimationController
animationController which
final
colors List<List<Color>>
Each List
final
debugMode bool
debugMode will make the container background grey
final
hashCode int
The hash code for this object.
no setterinherited
hideOverlay Function?
hideOverlay is invoked when dimmer container is being clicked while LayerLinkConfig is not enabled see what LayerLinkConfig does
final
innerRadius double
inner Radius of a donut, can't be lower than 0
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layerLinkConfig LayerLinkConfig
see LayerLinkConfig WheelOverLayEntryContent uses layerLinkConfig to decide whether to link this overlay to a target. This link is necessary for metric changes or scroll when you want the layer to stick to some element(target).
final
onSelect → void Function(Color)
invoked when user clicks on a FanPieceWidget
final
padding double
padding between outer radius and the outer container
final
pieceBorderSize double
border size of fan piece
final
pieceHeight double
height of each fan piece
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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}) 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