SfRangeSelectorThemeData class
Holds the color and typography values for a SfRangeSelectorTheme. Use this class to configure a SfRangeSelectorTheme widget, or to set the SfThemeData.rangeSelectorThemeData for a SfTheme widget.
To obtain the current theme, use SfRangeSelectorTheme.of.
The range selector 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 selector is between the left and right thumbs.
- The "inactive" side of the range selector 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 selector 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 "child", which can be any type of framework widget or custom widget like SfChart as a child.
The range selector will be disabled if enabled
is false or
min is equal to max.
See also:
- SfTheme and SfThemeData, for customizing the visual appearance of the range selector.
- Inheritance
-
- Object
- SfSliderThemeData
- SfRangeSliderThemeData
- SfRangeSelectorThemeData
Constructors
- SfRangeSelectorThemeData({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 SfRangeSelectorThemeData.raw
for the given values.
factory
- SfRangeSelectorThemeData.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? activeRegionColor, required Color? inactiveRegionColor, 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 SfRangeSelectorThemeData 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
, 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 - activeRegionColor → Color?
-
Specifies the color for the active region of the
child in the
SfRangeSelector
.final - 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 - brightness → Brightness
-
Specifies the light and dark theme for 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 - inactiveRegionColor → Color?
-
Specifies the color for the inactive region of the child
in the
SfRangeSelector
.final - 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?
-
Specifies the stroke color for the thumbs when they overlap in the
SfRangeSlider
, andSfRangeSelector
.finalinherited - overlappingTooltipStrokeColor → Color?
-
Specifies the stroke color for the tooltips when they overlap in the
SfRangeSlider
, andSfRangeSelector
.finalinherited - 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}) → SfRangeSelectorThemeData -
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(
SfRangeSelectorThemeData? a, SfRangeSelectorThemeData? b, double t) → SfRangeSelectorThemeData? -
Linearly interpolate between two themes.
override