TermSlider class
A slider: a rule across its width, the part up to the value heavy in
the accent, the value a block one cell wide that steps from cell to
cell: ━━━━━━█──────────. The arrows move it by step, Page Up and
Down by a tenth, Home and End to the ends; a drag or a tap on the rule
puts it there. The keyboard's focus is the cursor: a block of the accent
a line tall across the rail, the rule and the value cut out of it; in
hand, the value fills its cell. A screen reader hears a slider.
TermSlider(
semanticLabel: 'canary share',
value: share,
onChanged: (v) => setState(() => share = v),
)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TermSlider
Constructors
-
TermSlider({Key? key, required double value, required ValueChanged<
double> ? onChanged, required String semanticLabel, double min = 0, double max = 1, double? step, int? divisions, String semanticFormatterCallback(double value)?, FocusNode? focusNode, bool autofocus = false, TermStyle? style}) -
A slider at
valuebetweenminandmax.const
Properties
- autofocus → bool
-
Whether it takes focus when first shown.
final
- divisions → int?
-
The values it stops at; null: any.
final
- focusNode → FocusNode?
-
Its focus; one given is the caller's to dispose, and null makes and
disposes its own.
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 greatest value.
final
- min → double
-
The least value.
final
-
onChanged
→ ValueChanged<
double> ? -
Called as it moves; null disables it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticFormatterCallback → String Function(double value)?
-
What a screen reader says the value is; null: a percentage.
final
- semanticLabel → String
-
What it sets.
final
- step → double?
-
How far an arrow moves it; null: a hundredth of the range.
final
- style → TermStyle?
-
Overrides, over the theme's TermThemeData.sliderStyle:
fill(the heavy part),foreground(the block) andedge(the rule).final - value → double
-
The value.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< TermSlider> -
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.
override
-
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