CustomThumbDynamicSlider constructor

const CustomThumbDynamicSlider({
  1. Key? key,
  2. required dynamic onValueChanged(
    1. int val
    ),
  3. required int minValue,
  4. required int maxValue,
  5. double? trackHeight = 3,
  6. Color? thumbColor = Colors.grey,
  7. Color? activeTrackColor = Colors.blueGrey,
  8. Color? activeTickMarkColor = Colors.green,
  9. Color? inactiveTrackColor = Colors.black12,
  10. Color? overlayColor = Colors.cyan,
  11. Color? valueIndicatorColor = Colors.grey,
  12. Color? inactiveTickMarkColor = Colors.black87,
  13. double? thumbRadius = 20,
  14. Color? thumbCircleColor = Colors.blue,
  15. double? overlayThumbRadius = 15,
  16. String currencyPrefix = "\$",
  17. double? tickMarkRadius = 3,
  18. TextStyle? thumbLabelTextStyle = const TextStyle(color: Colors.white, fontSize: 14.0, fontFamily: 'Roboto'),
})

Implementation

const CustomThumbDynamicSlider({
  Key? key,
  required this.onValueChanged,
  required this.minValue,
  required this.maxValue,
  this.trackHeight = 3,
  this.thumbColor = Colors.grey,
  this.activeTrackColor = Colors.blueGrey,
  this.activeTickMarkColor = Colors.green,
  this.inactiveTrackColor = Colors.black12,
  this.overlayColor = Colors.cyan,
  this.valueIndicatorColor = Colors.grey,
  this.inactiveTickMarkColor = Colors.black87,
  this.thumbRadius = 20,
  this.thumbCircleColor = Colors.blue,
  this.overlayThumbRadius = 15,
  this.currencyPrefix = "\$",
  this.tickMarkRadius = 3,
  this.thumbLabelTextStyle = const TextStyle(color: Colors.white, fontSize: 14.0, fontFamily: 'Roboto'),
}) : super(key: key);