SfSliderThemeData constructor
SfSliderThemeData({
- 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? tooltipBackgroundColor,
- Color? thumbStrokeColor,
- 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 SfSliderThemeData.raw for the given values.
If any of the values are null, the default values will be set.
Implementation
factory SfSliderThemeData(
{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? tooltipBackgroundColor,
Color? thumbStrokeColor,
Color? activeDividerStrokeColor,
Color? inactiveDividerStrokeColor,
double? trackCornerRadius,
double? overlayRadius,
double? thumbRadius,
double? activeDividerRadius,
double? inactiveDividerRadius,
double? thumbStrokeWidth,
double? activeDividerStrokeWidth,
double? inactiveDividerStrokeWidth}) {
brightness = brightness ?? Brightness.light;
activeTrackHeight ??= 6.0;
inactiveTrackHeight ??= 4.0;
overlayRadius ??= 24.0;
thumbRadius ??= 10.0;
return SfSliderThemeData.raw(
brightness: brightness,
activeTrackHeight: activeTrackHeight,
inactiveTrackHeight: inactiveTrackHeight,
tickSize: tickSize,
minorTickSize: minorTickSize,
tickOffset: tickOffset,
labelOffset: labelOffset,
inactiveLabelStyle: inactiveLabelStyle,
activeLabelStyle: activeLabelStyle,
tooltipTextStyle: tooltipTextStyle,
inactiveTrackColor: inactiveTrackColor,
activeTrackColor: activeTrackColor,
inactiveDividerColor: inactiveDividerColor,
activeDividerColor: activeDividerColor,
thumbColor: thumbColor,
thumbStrokeColor: thumbStrokeColor,
activeDividerStrokeColor: activeDividerStrokeColor,
inactiveDividerStrokeColor: inactiveDividerStrokeColor,
overlayColor: overlayColor,
activeTickColor: activeTickColor,
inactiveTickColor: inactiveTickColor,
disabledActiveTickColor: disabledActiveTickColor,
disabledInactiveTickColor: disabledInactiveTickColor,
activeMinorTickColor: activeMinorTickColor,
inactiveMinorTickColor: inactiveMinorTickColor,
disabledActiveMinorTickColor: disabledActiveMinorTickColor,
disabledInactiveMinorTickColor: disabledInactiveMinorTickColor,
disabledActiveTrackColor: disabledActiveTrackColor,
disabledInactiveTrackColor: disabledInactiveTrackColor,
disabledActiveDividerColor: disabledActiveDividerColor,
disabledInactiveDividerColor: disabledInactiveDividerColor,
disabledThumbColor: disabledThumbColor,
tooltipBackgroundColor: tooltipBackgroundColor,
overlayRadius: overlayRadius,
thumbRadius: thumbRadius,
activeDividerRadius: activeDividerRadius,
inactiveDividerRadius: inactiveDividerRadius,
thumbStrokeWidth: thumbStrokeWidth,
activeDividerStrokeWidth: activeDividerStrokeWidth,
inactiveDividerStrokeWidth: inactiveDividerStrokeWidth,
trackCornerRadius: trackCornerRadius);
}