PlinthAngleSlider class
A circular dial for choosing an angle, matching Mantine's
AngleSlider.
The one control in the colour set that isn't about colour: it picks a direction. A gradient's angle, a shadow's offset, a rotation. It lives here because Mantine ships it alongside the colour inputs, built from the same drag-on-a-track machinery.
Zero points up and the value increases clockwise — the compass convention people expect from a dial, not the mathematical one where zero points right and grows anticlockwise.
PlinthAngleSlider(
value: _angle,
onChanged: (a) => setState(() => _angle = a),
)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PlinthAngleSlider
Constructors
-
PlinthAngleSlider({Key? key, required double value, required ValueChanged<
double> ? onChanged, double diameter = 60, double thickness = 4, String? color, double step = 1, int? divisions}) -
const
Properties
- color → String?
-
final
- diameter → double
-
Diameter of the dial in logical pixels.
final
- divisions → int?
-
Snaps to this many equal steps around the circle — 8 gives the
compass points, 12 the clock positions. Omit for continuous.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onChanged
→ ValueChanged<
double> ? -
Null disables the dial.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- step → double
-
Degrees per arrow-key press.
final
- thickness → double
-
final
- value → double
-
Degrees clockwise from straight up, 0..360.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< PlinthAngleSlider> -
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