ExpressiveRangeSlider class

Two values on one track (Compose's RangeSlider): start and end, each with its own handle; the active track runs between them. A press takes the nearer handle; a handle never passes the other.

ExpressiveRangeSlider(start: low, end: high, min: 0, max: 500, onChanged: (s, e) => setState(() { low = s; high = e; }))
Inheritance

Constructors

ExpressiveRangeSlider({required double start, required double end, required void onChanged(double start, double end)?, void onChangeEnd(double start, double end)?, ExpressiveComponentThemeData? style, double min = 0, double max = 1, int steps = 0, ExpressiveSliderSize size = ExpressiveSliderSize.extraSmall, String valueLabel(double value)?, String? startSemanticLabel, String? endSemanticLabel, Key? key})
A range slider from start to end, reporting a change through onChanged.
const

Properties

enabled → bool
Whether it takes input: false when onChanged is null, as in Flutter.
no setter
end → double
The upper value.
final
endSemanticLabel → String?
What a screen reader calls the end handle.
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 track's end.
final
min → double
The value at the track's start.
final
onChanged → void Function(double start, double end)?
Called with both values while the user moves a handle.
final
onChangeEnd → void Function(double start, double end)?
Called with both values when a drag, tap or key press ends.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → ExpressiveSliderSize
The track size.
final
start → double
The lower value.
final
startSemanticLabel → String?
What a screen reader calls the start handle (Compose's Strings.SliderRangeStart).
final
steps → int
Discrete values between min and max; 0 = continuous.
final
style → ExpressiveComponentThemeData?
Stateful track colours, handle outline and content/layout overrides. Track segments retain the geometry that encodes their values.
final
valueLabel → String Function(double value)?
Each value as its indicator and a screen reader show it; no indicator when null.
final

Methods

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