SfRangeSliderThemeData class Null safety

Holds the color and typography values for a SfRangeSliderTheme. Use this class to configure a SfRangeSliderTheme widget, or to set the SfThemeData.rangeSliderThemeData for a SfTheme widget.

To obtain the current theme, use SfRangeSliderTheme.of.

The range slider elements are:

  • The "track", which is the rounded rectangle in which the thumbs are slides over.
  • The "thumb", which is a shape that slides horizontally when the user drags it.
  • The "active" side of the range slider is between the left and right thumbs.
  • The "inactive" side of the range slider is between the min value and the left thumb, and the right thumb and the max value. For RTL, the inactive side of the range slider is between the max value and the left thumb, and the right thumb and the min value.
  • The "dividers", which is a shape that renders on the track based on the given interval value.
  • The "ticks", which is a shape that rendered based on given interval value. Basically, it is rendered below the track. It is also called “major ticks”.
  • The "minor ticks", which is a shape that renders between two major ticks based on given minorTicksPerInterval value. Basically, it is rendered below the track.
  • The "labels", which is a text that rendered based on given interval value. Basically, it is rendered below the track and the major ticks.

The range slider will be disabled if onChanged is null or min is equal to max.

See also:

Inheritance
Implementers

Constructors

SfRangeSliderThemeData({Brightness? brightness, double? activeTrackHeight, double? inactiveTrackHeight, Size? tickSize, Size? minorTickSize, Offset? tickOffset, Offset? labelOffset, TextStyle? inactiveLabelStyle, TextStyle? activeLabelStyle, TextStyle? tooltipTextStyle, Color? inactiveTrackColor, Color? activeTrackColor, Color? thumbColor, Color? activeTickColor, Color? inactiveTickColor, Color? disabledActiveTickColor, Color? disabledInactiveTickColor, Color? activeMinorTickColor, Color? inactiveMinorTickColor, Color? disabledActiveMinorTickColor, Color? disabledInactiveMinorTickColor, Color? overlayColor, Color? inactiveDividerColor, Color? activeDividerColor, Color? disabledActiveTrackColor, Color? disabledInactiveTrackColor, Color? disabledActiveDividerColor, Color? disabledInactiveDividerColor, Color? disabledThumbColor, Color? activeRegionColor, Color? inactiveRegionColor, Color? tooltipBackgroundColor, Color? overlappingTooltipStrokeColor, Color? thumbStrokeColor, Color? overlappingThumbStrokeColor, Color? activeDividerStrokeColor, Color? inactiveDividerStrokeColor, double? trackCornerRadius, double? overlayRadius, double? thumbRadius, double? activeDividerRadius, double? inactiveDividerRadius, double? thumbStrokeWidth, double? activeDividerStrokeWidth, double? inactiveDividerStrokeWidth})
Returns a new instance of SfRangeSliderThemeData.raw for the given values. [...]
factory
SfRangeSliderThemeData.raw({required Brightness brightness, required double activeTrackHeight, required double inactiveTrackHeight, required Size? tickSize, required Size? minorTickSize, required Offset? tickOffset, required Offset? labelOffset, required TextStyle? inactiveLabelStyle, required TextStyle? activeLabelStyle, required TextStyle? tooltipTextStyle, required Color? inactiveTrackColor, required Color? activeTrackColor, required Color? thumbColor, required Color? thumbStrokeColor, required Color? overlappingThumbStrokeColor, required Color? activeDividerStrokeColor, required Color? inactiveDividerStrokeColor, required Color activeTickColor, required Color inactiveTickColor, required Color disabledActiveTickColor, required Color disabledInactiveTickColor, required Color activeMinorTickColor, required Color inactiveMinorTickColor, required Color disabledActiveMinorTickColor, required Color disabledInactiveMinorTickColor, required Color? overlayColor, required Color? inactiveDividerColor, required Color? activeDividerColor, required Color? disabledActiveTrackColor, required Color? disabledInactiveTrackColor, required Color? disabledActiveDividerColor, required Color? disabledInactiveDividerColor, required Color disabledThumbColor, required Color? tooltipBackgroundColor, required Color? overlappingTooltipStrokeColor, required double? trackCornerRadius, required double overlayRadius, required double thumbRadius, required double? activeDividerRadius, required double? inactiveDividerRadius, required double? thumbStrokeWidth, required double? activeDividerStrokeWidth, required double? inactiveDividerStrokeWidth})
Create a SfRangeSliderThemeData given a set of exact values. All the values must be specified. [...]
const

Properties

activeDividerColor Color?
Specifies the color for the active dividers in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
activeDividerRadius double?
Specifies the radius for the active divider in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
activeDividerStrokeColor Color?
Specifies the stroke color for the active divider in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
activeDividerStrokeWidth double?
Specifies the stroke width for the active divider in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
activeLabelStyle TextStyle?
Specifies the appearance for active label in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
activeMinorTickColor Color
Specifies the color for the active minor ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
activeTickColor Color
Specifies the color for active tick. Specifies the color for the active major ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
activeTrackColor Color?
Specifies the color for active track in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
activeTrackHeight double
Specifies the height for the active track in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
brightness Brightness
Specifies the light and dark theme for the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
disabledActiveDividerColor Color?
Specifies the color for the disabled active dividers in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
disabledActiveMinorTickColor Color
Specifies the color for the disabled active minor ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
disabledActiveTickColor Color
Specifies the color for the disabled active major ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
disabledActiveTrackColor Color?
Specifies the color for the disabled active track in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
disabledInactiveDividerColor Color?
Specifies the color for the disabled inactive dividers in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
disabledInactiveMinorTickColor Color
Specifies the color for the disabled inactive minor ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
disabledInactiveTickColor Color
Specifies the color for the disabled inactive major ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
disabledInactiveTrackColor Color?
Specifies the color for the disabled inactive track in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
disabledThumbColor Color
Specifies the color for the disabled thumb in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, override
inactiveDividerColor Color?
Specifies the color for the inactive dividers in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
inactiveDividerRadius double?
Specifies the radius for the inactive divider in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
inactiveDividerStrokeColor Color?
Specifies the stroke color for the inactive divider in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
inactiveDividerStrokeWidth double?
Specifies the stroke width for the inactive divider in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
inactiveLabelStyle TextStyle?
Specifies the appearance for inactive label in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
inactiveMinorTickColor Color
Specifies the color for the inactive minor ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
inactiveTickColor Color
Specifies the color for the inactive major ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
inactiveTrackColor Color?
Specifies the color for the inactive track in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
inactiveTrackHeight double
Specifies the height for the inactive track in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
labelOffset Offset?
Adjust the space around labels in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
minorTickSize Size?
Specifies the size for the minor ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
overlappingThumbStrokeColor Color?
Specifies the stroke color for the thumbs when they overlap in the SfRangeSlider, and SfRangeSelector. [...]
final
overlappingTooltipStrokeColor Color?
Specifies the stroke color for the tooltips when they overlap in the SfRangeSlider, and SfRangeSelector. [...]
final
overlayColor Color?
Specifies the color for the overlay in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
overlayRadius double
Specifies the radius for the overlay in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
thumbColor Color?
Specifies the color for the thumb in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
thumbRadius double
Specifies the radius for the thumb in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
thumbStrokeColor Color?
Specifies the stroke color for the thumb in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
thumbStrokeWidth double?
Specifies the stroke width for the thumb in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
tickOffset Offset?
Adjust the space around ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
tickSize Size?
Specifies the size for tick. Specifies the size for the major ticks in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
tooltipBackgroundColor Color?
Specifies the color for the tooltip background in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
tooltipTextStyle TextStyle?
Specifies the appearance for the tooltip in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited
trackCornerRadius double?
Specifies the radius for the track corners in the SfSlider, SfRangeSlider, and SfRangeSelector. [...]
final, inherited

Methods

copyWith({Brightness? brightness, double? activeTrackHeight, double? inactiveTrackHeight, Size? tickSize, Size? minorTickSize, Offset? tickOffset, Offset? labelOffset, TextStyle? inactiveLabelStyle, TextStyle? activeLabelStyle, TextStyle? tooltipTextStyle, Color? inactiveTrackColor, Color? activeTrackColor, Color? thumbColor, Color? thumbStrokeColor, Color? overlappingThumbStrokeColor, Color? activeDividerStrokeColor, Color? inactiveDividerStrokeColor, Color? activeTickColor, Color? inactiveTickColor, Color? disabledActiveTickColor, Color? disabledInactiveTickColor, Color? activeMinorTickColor, Color? inactiveMinorTickColor, Color? disabledActiveMinorTickColor, Color? disabledInactiveMinorTickColor, Color? overlayColor, Color? inactiveDividerColor, Color? activeDividerColor, Color? disabledActiveTrackColor, Color? disabledInactiveTrackColor, Color? disabledActiveDividerColor, Color? disabledInactiveDividerColor, Color? disabledThumbColor, Color? activeRegionColor, Color? inactiveRegionColor, Color? tooltipBackgroundColor, Color? overlappingTooltipStrokeColor, double? trackCornerRadius, double? overlayRadius, double? thumbRadius, double? activeDividerRadius, double? inactiveDividerRadius, double? thumbStrokeWidth, double? activeDividerStrokeWidth, double? inactiveDividerStrokeWidth}) SfRangeSliderThemeData
Creates a copy of this theme but with the given fields replaced with the new values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
override

Static Methods

lerp(SfRangeSliderThemeData? a, SfRangeSliderThemeData? b, double t) SfRangeSliderThemeData?
Linearly interpolate between two themes. [...]
override