TDSliderThemeData constructor

TDSliderThemeData({
  1. double? trackHeight = 4,
  2. Color? activeTrackColor = const Color(0xFF0052D9),
  3. Color? inactiveTrackColor = const Color(0xFFDCDCDC),
  4. Color? secondaryActiveTrackColor,
  5. Color? disabledActiveTrackColor = const Color(0xFFB5C7FF),
  6. Color? disabledInactiveTrackColor = const Color(0xFFEEEEEE),
  7. Color? disabledSecondaryActiveTrackColor,
  8. Color? activeTickMarkColor = const Color(0xFF0052D9),
  9. Color? inactiveTickMarkColor = const Color(0xFFDCDCDC),
  10. Color? disabledActiveTickMarkColor = const Color(0xFFB5C7FF),
  11. Color? disabledInactiveTickMarkColor = const Color(0xFFEEEEEE),
  12. Color? thumbColor = Colors.white,
  13. Color? overlappingShapeStrokeColor,
  14. Color? disabledThumbColor = Colors.white,
  15. Color? overlayColor,
  16. Color? valueIndicatorColor,
  17. SliderComponentShape? overlayShape = const TDNoOverlayShape(),
  18. SliderTickMarkShape? tickMarkShape = const TDRoundSliderTickMarkShape(),
  19. SliderComponentShape? thumbShape = const TDRoundSliderThumbShape(),
  20. SliderTrackShape? trackShape = const TDRoundedRectSliderTrackShape(),
  21. SliderComponentShape? valueIndicatorShape,
  22. RangeSliderTickMarkShape? rangeTickMarkShape = const TDRoundRangeSliderTickMarkShape(),
  23. RangeSliderThumbShape? rangeThumbShape = const TDRoundRangeSliderThumbShape(),
  24. RangeSliderTrackShape? rangeTrackShape = const TDRoundedRectRangeSliderTrackShape(),
  25. RangeSliderValueIndicatorShape? rangeValueIndicatorShape,
  26. ShowValueIndicator? showValueIndicator = ShowValueIndicator.never,
  27. TextStyle? valueIndicatorTextStyle,
  28. double? minThumbSeparation,
  29. RangeThumbSelector? thumbSelector,
  30. MaterialStateProperty<MouseCursor?>? mouseCursor,
  31. bool showScaleValue = false,
  32. bool showThumbValue = false,
  33. int? divisions,
  34. TextStyle? scaleTextStyle = const TextStyle(fontSize: 14, color: Color(0xE6000000)),
  35. TextStyle disabledScaleTextStyle = const TextStyle(fontSize: 14, color: Color(0x42000000)),
  36. TextStyle? thumbTextStyle = const TextStyle(fontSize: 14, color: Color(0xE6000000)),
  37. TextStyle disabledThumbTextStyle = const TextStyle(fontSize: 14, color: Color(0x42000000)),
  38. double min = 0.0,
  39. double max = 1.0,
  40. 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,
      );