CustomThumbDynamicSlider constructor
const
CustomThumbDynamicSlider({
- Key? key,
- required dynamic onValueChanged(
- int val
- required int minValue,
- required int maxValue,
- double? trackHeight = 3,
- Color? thumbColor = Colors.grey,
- Color? activeTrackColor = Colors.blueGrey,
- Color? activeTickMarkColor = Colors.green,
- Color? inactiveTrackColor = Colors.black12,
- Color? overlayColor = Colors.cyan,
- Color? valueIndicatorColor = Colors.grey,
- Color? inactiveTickMarkColor = Colors.black87,
- double? thumbRadius = 20,
- Color? thumbCircleColor = Colors.blue,
- double? overlayThumbRadius = 15,
- String currencyPrefix = "\$",
- double? tickMarkRadius = 3,
- 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);