DesignRangeSlider class

A slider of values between min and max.

DesignRangeSlider(values: const DesignRangeValues(20, 80), max: 100, onChanged: (values) {}, trackBuilder: (context, track) => const SizedBox(height: 4), thumbBuilder: (context, index, states) => const SizedBox(width: 20, height: 20))
Inheritance

Constructors

DesignRangeSlider({Key? key, required DesignRangeValues values, required ValueChanged<DesignRangeValues>? onChanged, required Widget trackBuilder(BuildContext context, DesignRangeTrack track), required Widget thumbBuilder(BuildContext context, int index, Set<WidgetState> states), double min = 0, double max = 1, int? divisions, double minGap = 0, double? step, double? pageStep, ValueChanged<DesignRangeValues>? onChangeStart, ValueChanged<DesignRangeValues>? onChangeEnd, String semanticFormatterCallback(double value)?, String? startLabel, String? endLabel, Size thumbSize = const Size(44, 44)})
A range slider at values.
const

Properties

divisions → int?
How many steps the range snaps to; null: none.
final
endLabel → String?
What a screen reader calls the upper thumb; null: DesignLocalizations.rangeSliderEndLabel.
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
minGap → double
The least distance between the ends.
final
onChanged → ValueChanged<DesignRangeValues>?
A drag's, a key's or a screen reader's new range.
final
onChangeEnd → ValueChanged<DesignRangeValues>?
Called when a drag ends.
final
onChangeStart → ValueChanged<DesignRangeValues>?
Called when a drag starts.
final
pageStep → double?
A page key's change.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticFormatterCallback → String Function(double value)?
What a screen reader hears for a value, as RangeSlider.semanticFormatterCallback.
final
startLabel → String?
What a screen reader calls the lower thumb; null: DesignLocalizations.rangeSliderStartLabel.
final
step → double?
An arrow's change.
final
thumbBuilder → Widget Function(BuildContext context, int index, Set<WidgetState> states)
Paints thumb index (0 the lower, 1 the upper).
final
thumbSize → Size
Each thumb's target (its face is centred in it).
final
trackBuilder → Widget Function(BuildContext context, DesignRangeTrack track)
Paints the track (full width, centred under the thumbs).
final
values → DesignRangeValues
The range.
final

Methods

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