SfRangeSliderThemeData class
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:
- SfTheme and SfThemeData, for customizing the visual appearance of the range slider.
- Inheritance
-
- Object
- SfSliderThemeData
- SfRangeSliderThemeData
- Implementers
Constructors
- SfRangeSliderThemeData({double activeTrackHeight = 6.0, double inactiveTrackHeight = 4.0, 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? tooltipBackgroundColor, Color? overlappingTooltipStrokeColor, Color? thumbStrokeColor, Color? overlappingThumbStrokeColor, Color? activeDividerStrokeColor, Color? inactiveDividerStrokeColor, double? trackCornerRadius, double overlayRadius = 24.0, double thumbRadius = 10.0, double? activeDividerRadius, double? inactiveDividerRadius, double? thumbStrokeWidth, double? activeDividerStrokeWidth, double? inactiveDividerStrokeWidth})
-
Creating an argument constructor of SfRangeSliderThemeData class.
const
- SfRangeSliderThemeData.raw({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? tooltipBackgroundColor, Color? overlappingTooltipStrokeColor, double? trackCornerRadius, double? overlayRadius, double? thumbRadius, double? activeDividerRadius, double? inactiveDividerRadius, double? thumbStrokeWidth, double? activeDividerStrokeWidth, double? inactiveDividerStrokeWidth})
-
Returns a new instance of SfRangeSliderThemeData for the given values.
factory
Properties
- activeDividerColor → Color?
-
Specifies the color for the active dividers in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - activeDividerRadius → double?
-
Specifies the radius for the active divider in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - activeDividerStrokeColor → Color?
-
Specifies the stroke color for the active divider in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - activeDividerStrokeWidth → double?
-
Specifies the stroke width for the active divider in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - activeLabelStyle → TextStyle?
-
Specifies the appearance for active label in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - activeMinorTickColor → Color?
-
Specifies the color for the active minor ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - activeTickColor → Color?
-
Specifies the color for active tick.
Specifies the color for the active major ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - activeTrackColor → Color?
-
Specifies the color for active track in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - activeTrackHeight → double
-
Specifies the height for the active track in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - disabledActiveDividerColor → Color?
-
Specifies the color for the disabled active dividers in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - disabledActiveMinorTickColor → Color?
-
Specifies the color for the disabled active minor ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - disabledActiveTickColor → Color?
-
Specifies the color for the disabled active major ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - disabledActiveTrackColor → Color?
-
Specifies the color for the disabled active track in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - disabledInactiveDividerColor → Color?
-
Specifies the color for the disabled inactive dividers in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - disabledInactiveMinorTickColor → Color?
-
Specifies the color for the disabled inactive minor ticks in
the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - disabledInactiveTickColor → Color?
-
Specifies the color for the disabled inactive major ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - disabledInactiveTrackColor → Color?
-
Specifies the color for the disabled inactive track in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - disabledThumbColor → Color?
-
Specifies the color for the disabled thumb in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - hashCode → int
-
The hash code for this object.
no setteroverride
- inactiveDividerColor → Color?
-
Specifies the color for the inactive dividers in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - inactiveDividerRadius → double?
-
Specifies the radius for the inactive divider in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - inactiveDividerStrokeColor → Color?
-
Specifies the stroke color for the inactive divider in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - inactiveDividerStrokeWidth → double?
-
Specifies the stroke width for the inactive divider in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - inactiveLabelStyle → TextStyle?
-
Specifies the appearance for inactive label in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - inactiveMinorTickColor → Color?
-
Specifies the color for the inactive minor ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - inactiveTickColor → Color?
-
Specifies the color for the inactive major ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - inactiveTrackColor → Color?
-
Specifies the color for the inactive track in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - inactiveTrackHeight → double
-
Specifies the height for the inactive track in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - labelOffset → Offset?
-
Adjust the space around labels in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - minorTickSize → Size?
-
Specifies the size for the minor ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - overlappingThumbStrokeColor → Color?
-
Create a SfRangeSliderThemeData given a set of exact values.
All the values must be specified.
final
- overlappingTooltipStrokeColor → Color?
-
Specifies the stroke color for the tooltips when they overlap in the
SfRangeSlider
, andSfRangeSelector
.final - overlayColor → Color?
-
Specifies the color for the overlay in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - overlayRadius → double
-
Specifies the radius for the overlay in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thumbColor → Color?
-
Specifies the color for the thumb in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - thumbRadius → double
-
Specifies the radius for the thumb in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - thumbStrokeColor → Color?
-
Specifies the stroke color for the thumb in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - thumbStrokeWidth → double?
-
Specifies the stroke width for the thumb in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - tickOffset → Offset?
-
Adjust the space around ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - tickSize → Size?
-
Specifies the size for tick.
Specifies the size for the major ticks in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - tooltipBackgroundColor → Color?
-
Specifies the color for the tooltip background in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - tooltipTextStyle → TextStyle?
-
Specifies the appearance for the tooltip in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited - trackCornerRadius → double?
-
Specifies the radius for the track corners in the
SfSlider
,SfRangeSlider
, andSfRangeSelector
.finalinherited
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 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
-
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