FieldStyleSlider class

Style configuration for slider fields.

Extends FieldStyle with slider-specific styling options including track colors, thumb appearance, value display, and interaction behavior. Provides comprehensive customization for Material Design sliders.

Inheritance

Constructors

FieldStyleSlider({double min = 0.0, double max = 100.0, int? divisions, Color? activeColor, Color? inactiveColor, Color? thumbColor, Color? overlayColor, MouseCursor? mouseCursor, SemanticFormatterCallback? semanticFormatterCallback, FocusNode? focusNode, bool autofocus = false, SliderInteraction? allowedInteraction, bool showTitle = true, Widget? title, double titleSpacing = 8.0, bool showLabel = false, String labelFormatter(double value) = _defaultLabelFormatter, bool showValue = true, String valueFormatter(double value) = _defaultValueFormatter, TextStyle? valueTextStyle, double valueSpacing = 8.0, bool enabled = true, double? headerSpacing = 5.0, double? footerSpacing = 5.0})

Properties

activeColor Color?
The color of the active portion of the slider track
final
allowedInteraction SliderInteraction?
The allowed interaction for the slider
final
autofocus bool
Whether the slider should autofocus when first displayed
final
divisions int?
The number of discrete divisions on the slider track
final
enabled bool
Whether the slider is enabled for interaction
final
focusNode FocusNode?
The focus node for the slider
final
footerSpacing double?
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 slider
final
min double
The minimum value of the 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
showLabel bool
Whether to show labels on the slider track
final
showTitle bool
Whether to show the title above the slider
final
showValue bool
Whether to show the current value below the slider
final
thumbColor Color?
The color of the slider thumb
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 value)
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, FocusNode? focusNode, bool? autofocus, SliderInteraction? allowedInteraction, bool? showTitle, Widget? title, double? titleSpacing, bool? showLabel, String labelFormatter(double value)?, bool? showValue, String valueFormatter(double value)?, TextStyle? valueTextStyle, double? valueSpacing, bool? enabled, double? headerSpacing, double? footerSpacing}) FieldStyleSlider
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