FieldStyleRangeSlider class
Style configuration for range slider fields.
Extends FieldStyle with range slider-specific styling options including track colors, thumb appearance, value display, and interaction behavior. Provides comprehensive customization for Material Design range sliders.
- Inheritance
-
- Object
- FieldStyle
- FieldStyleRangeSlider
Constructors
- FieldStyleRangeSlider({double min = 0.0, double max = 100.0, int? divisions, Color? activeColor, Color? inactiveColor, Color? thumbColor, Color? overlayColor, MouseCursor? mouseCursor, SemanticFormatterCallback? semanticFormatterCallback, bool showTitle = true, Widget? title, double titleSpacing = 8.0, bool showLabels = false, String labelFormatter(double value) = _defaultLabelFormatter, bool showValues = true, String valueFormatter(double start, double end) = _defaultValueFormatter, TextStyle? valueTextStyle, double valueSpacing = 8.0, bool enabled = true, double? headerSpacing = 5.0, })
Properties
- activeColor → Color?
-
The color of the active portion of the slider track
final
- divisions → int?
-
The number of discrete divisions on the slider track
final
- enabled → bool
-
Whether the slider is enabled for interaction
final
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerSpacing ↔ double?
-
getter/setter pairinherited
- inactiveColor → Color?
-
The color of the inactive portion of the slider track
final
- labelFormatter → String Function(double value)
-
Function to format the label text
final
- max → double
-
The maximum value of the range slider
final
- min → double
-
The minimum value of the range slider
final
- mouseCursor → MouseCursor?
-
The mouse cursor to use when hovering over the slider
final
- overlayColor → Color?
-
The color of the overlay that appears when the slider is pressed
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticFormatterCallback → SemanticFormatterCallback?
-
A function that formats the semantic label for accessibility
final
- showLabels → bool
-
Whether to show labels on the slider track
final
- showTitle → bool
-
Whether to show the title above the slider
final
- showValues → bool
-
Whether to show the current values below the slider
final
- thumbColor → Color?
-
The color of the slider thumbs
final
- title → Widget?
-
Custom title widget to display above the slider
final
- titleSpacing → double
-
Spacing between the title and slider
final
- valueFormatter → String Function(double start, double end)
-
Function to format the value text
final
- valueSpacing → double
-
Spacing between the slider and value text
final
- valueTextStyle → TextStyle?
-
Text style for the value display
final
Methods
-
copyWith(
{double? min, double? max, int? divisions, Color? activeColor, Color? inactiveColor, Color? thumbColor, Color? overlayColor, MouseCursor? mouseCursor, SemanticFormatterCallback? semanticFormatterCallback, bool? showTitle, Widget? title, double? titleSpacing, bool? showLabels, String labelFormatter(double value)?, bool? showValues, String valueFormatter(double start, double end)?, TextStyle? valueTextStyle, double? valueSpacing, bool? enabled, double? headerSpacing, }) → FieldStyleRangeSlider -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited