LumenRangeSlider class

Interval slider (two thumbs) with the same look as LumenSlider.

For price filters, age range, time…

LumenRangeSlider(
  values: _preco,
  min: 0,
  max: 500,
  divisions: 50,
  onChanged: (RangeValues v) => setState(() => _preco = v),
)
Inheritance

Constructors

LumenRangeSlider({required RangeValues values, required ValueChanged<RangeValues>? onChanged, Key? key, double min = 0.0, double max = 1.0, int? divisions, RangeLabels? labels, Color? accentColor, ValueChanged<RangeValues>? onChangeStart, ValueChanged<RangeValues>? onChangeEnd, SemanticFormatterCallback? semanticFormatterCallback})
Creates a neon interval slider.
const

Properties

accentColor → Color?
Highlight color override.
final
divisions → int?
Optional number of discrete divisions of the range.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labels → RangeLabels?
Value indicator texts (appear only with divisions).
final
max → double
Highest value allowed.
final
min → double
Lowest value allowed.
final
onChanged → ValueChanged<RangeValues>?
Callback called while the user drags one of the thumbs. When null, the slider is visually disabled.
final
onChangeEnd → ValueChanged<RangeValues>?
Called when the user releases the thumb (good for triggering the search).
final
onChangeStart → ValueChanged<RangeValues>?
Called when the user starts dragging.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticFormatterCallback → SemanticFormatterCallback?
Text read by screen readers for each value (e.g.: "R$ 120").
final
values → RangeValues
Selected range.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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