GlassRangeSlider class
A slider with two knobs, picking a range: white knobs on GlassSlider's rail, the accent filling between them. The knobs can meet but not cross. A held knob lifts into a glass lens, as GlassSlider's does.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GlassRangeSlider
Constructors
-
GlassRangeSlider.new({Key? key, required GlassRange values, required ValueChanged<
GlassRange> ? onChanged, double min = 0, double max = 1, int? divisions, ValueChanged<GlassRange> ? onChangeStart, ValueChanged<GlassRange> ? onChangeEnd, Color? activeColor, String? semanticLabel, String semanticFormatter(double value)?, FocusNode? focusNode, FocusNode? endFocusNode, bool autofocus = false}) -
Creates a range slider showing
valuesbetweenminandmax.const
Properties
- activeColor → Color?
-
The fill's colour. Defaults to the theme's accent.
final
- autofocus → bool
-
Focuses the start knob when first built.
final
- divisions → int?
-
Snaps the values to this many equal steps, if set.
final
- endFocusNode → FocusNode?
-
The end knob's focus node.
final
- focusNode → FocusNode?
-
The start knob's focus node.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- max → double
-
The value at the right end of the rail.
final
- min → double
-
The value at the left end of the rail.
final
-
onChanged
→ ValueChanged<
GlassRange> ? -
Called as either knob moves. Null disables the slider.
final
-
onChangeEnd
→ ValueChanged<
GlassRange> ? -
Called when a knob is let go, with the range as it stands.
final
-
onChangeStart
→ ValueChanged<
GlassRange> ? -
Called when a knob is first held, with the range as it stands.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticFormatter → String Function(double value)?
-
Describes a value for assistive technology. Defaults to a percentage.
final
- semanticLabel → String?
-
Names the slider for assistive technology.
final
- values → GlassRange
-
The range shown; its start must not be after its end.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< GlassRangeSlider> -
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