TDSliderThemeData constructor
TDSliderThemeData({
- double? trackHeight = 4,
- Color? activeTrackColor = const Color(0xFF0052D9),
- Color? inactiveTrackColor = const Color(0xFFDCDCDC),
- Color? secondaryActiveTrackColor,
- Color? disabledActiveTrackColor = const Color(0xFFB5C7FF),
- Color? disabledInactiveTrackColor = const Color(0xFFEEEEEE),
- Color? disabledSecondaryActiveTrackColor,
- Color? activeTickMarkColor = const Color(0xFF0052D9),
- Color? inactiveTickMarkColor = const Color(0xFFDCDCDC),
- Color? disabledActiveTickMarkColor = const Color(0xFFB5C7FF),
- Color? disabledInactiveTickMarkColor = const Color(0xFFEEEEEE),
- Color? thumbColor = Colors.white,
- Color? overlappingShapeStrokeColor,
- Color? disabledThumbColor = Colors.white,
- Color? overlayColor,
- Color? valueIndicatorColor,
- SliderComponentShape? overlayShape = const TDNoOverlayShape(),
- SliderTickMarkShape? tickMarkShape = const TDRoundSliderTickMarkShape(),
- SliderComponentShape? thumbShape = const TDRoundSliderThumbShape(),
- SliderTrackShape? trackShape = const TDRoundedRectSliderTrackShape(),
- SliderComponentShape? valueIndicatorShape,
- RangeSliderTickMarkShape? rangeTickMarkShape = const TDRoundRangeSliderTickMarkShape(),
- RangeSliderThumbShape? rangeThumbShape = const TDRoundRangeSliderThumbShape(),
- RangeSliderTrackShape? rangeTrackShape = const TDRoundedRectRangeSliderTrackShape(),
- RangeSliderValueIndicatorShape? rangeValueIndicatorShape,
- ShowValueIndicator? showValueIndicator = ShowValueIndicator.never,
- TextStyle? valueIndicatorTextStyle,
- double? minThumbSeparation,
- RangeThumbSelector? thumbSelector,
- MaterialStateProperty<
MouseCursor?> ? mouseCursor, - bool showScaleValue = false,
- bool showThumbValue = false,
- int? divisions,
- TextStyle? scaleTextStyle = const TextStyle(fontSize: 14, color: Color(0xE6000000)),
- TextStyle disabledScaleTextStyle = const TextStyle(fontSize: 14, color: Color(0x42000000)),
- TextStyle? thumbTextStyle = const TextStyle(fontSize: 14, color: Color(0xE6000000)),
- TextStyle disabledThumbTextStyle = const TextStyle(fontSize: 14, color: Color(0x42000000)),
- double min = 0.0,
- double max = 1.0,
- ScaleFormatter? scaleFormatter,
Implementation
TDSliderThemeData(
{double? trackHeight = 4,
Color? activeTrackColor = const Color(0xFF0052D9),
Color? inactiveTrackColor = const Color(0xFFDCDCDC),
Color? secondaryActiveTrackColor,
Color? disabledActiveTrackColor = const Color(0xFFB5C7FF),
Color? disabledInactiveTrackColor = const Color(0xFFEEEEEE),
Color? disabledSecondaryActiveTrackColor,
Color? activeTickMarkColor = const Color(0xFF0052D9),
Color? inactiveTickMarkColor = const Color(0xFFDCDCDC),
Color? disabledActiveTickMarkColor = const Color(0xFFB5C7FF),
Color? disabledInactiveTickMarkColor = const Color(0xFFEEEEEE),
Color? thumbColor = Colors.white,
Color? overlappingShapeStrokeColor,
Color? disabledThumbColor = Colors.white,
Color? overlayColor,
Color? valueIndicatorColor,
SliderComponentShape? overlayShape = const TDNoOverlayShape(),
SliderTickMarkShape? tickMarkShape = const TDRoundSliderTickMarkShape(),
SliderComponentShape? thumbShape = const TDRoundSliderThumbShape(),
SliderTrackShape? trackShape = const TDRoundedRectSliderTrackShape(),
SliderComponentShape? valueIndicatorShape,
RangeSliderTickMarkShape? rangeTickMarkShape =
const TDRoundRangeSliderTickMarkShape(),
RangeSliderThumbShape? rangeThumbShape =
const TDRoundRangeSliderThumbShape(),
RangeSliderTrackShape? rangeTrackShape =
const TDRoundedRectRangeSliderTrackShape(),
RangeSliderValueIndicatorShape? rangeValueIndicatorShape,
ShowValueIndicator? showValueIndicator = ShowValueIndicator.never,
TextStyle? valueIndicatorTextStyle,
double? minThumbSeparation,
RangeThumbSelector? thumbSelector,
MaterialStateProperty<MouseCursor?>? mouseCursor,
this.showScaleValue = false,
this.showThumbValue = false,
this.divisions,
this.scaleTextStyle =
const TextStyle(fontSize: 14, color: Color(0xE6000000)),
this.disabledScaleTextStyle =
const TextStyle(fontSize: 14, color: Color(0x42000000)),
this.thumbTextStyle =
const TextStyle(fontSize: 14, color: Color(0xE6000000)),
this.disabledThumbTextStyle =
const TextStyle(fontSize: 14, color: Color(0x42000000)),
this.min = 0.0,
this.max = 1.0,
this.scaleFormatter})
: super(
trackHeight: trackHeight,
activeTrackColor: activeTrackColor,
inactiveTrackColor: inactiveTrackColor,
disabledActiveTrackColor: disabledActiveTrackColor,
disabledInactiveTrackColor: disabledInactiveTrackColor,
activeTickMarkColor: activeTickMarkColor,
inactiveTickMarkColor: inactiveTickMarkColor,
disabledActiveTickMarkColor: disabledActiveTickMarkColor,
disabledInactiveTickMarkColor: disabledInactiveTickMarkColor,
thumbColor: thumbColor,
overlappingShapeStrokeColor: overlappingShapeStrokeColor,
disabledThumbColor: disabledThumbColor,
overlayColor: overlayColor,
valueIndicatorColor: valueIndicatorColor,
overlayShape: overlayShape,
tickMarkShape: tickMarkShape,
thumbShape: thumbShape,
trackShape: trackShape,
valueIndicatorShape: valueIndicatorShape,
rangeTickMarkShape: rangeTickMarkShape,
rangeThumbShape: rangeThumbShape,
rangeTrackShape: rangeTrackShape,
rangeValueIndicatorShape: rangeValueIndicatorShape,
showValueIndicator: showValueIndicator,
valueIndicatorTextStyle: valueIndicatorTextStyle,
minThumbSeparation: minThumbSeparation,
thumbSelector: thumbSelector,
mouseCursor: mouseCursor,
);