LabeledDynamicSlider constructor
LabeledDynamicSlider({
- Key? key,
- required List<
int> inputValues, - required dynamic onValueChanged(
- double val
- int? numberOfDivisions,
- double? trackHeight = 3,
- Color? thumbColor = Colors.blue,
- Color? activeTrackColor = Colors.blueGrey,
- Color? activeTickMarkColor = Colors.blue,
- Color? inactiveTrackColor = Colors.black12,
- Color? overlayColor = Colors.cyan,
- Color? valueIndicatorColor = Colors.grey,
- Color? inactiveTickMarkColor = Colors.black87,
- double? thumbRadius = 11,
- double? overlayThumbRadius = 15,
- String currencyPrefix = "\$",
- NumericLabelDirection? labelDirection = NumericLabelDirection.below,
- double? tickMarkRadius = 3,
- TextStyle? numericLabelTextStyle = const TextStyle(color: Colors.black, fontSize: 14.0, fontFamily: 'Roboto'),
Implementation
LabeledDynamicSlider({
Key? key,
required this.inputValues,
required this.onValueChanged,
this.numberOfDivisions,
this.trackHeight = 3,
this.thumbColor = Colors.blue,
this.activeTrackColor = Colors.blueGrey,
this.activeTickMarkColor = Colors.blue,
this.inactiveTrackColor = Colors.black12,
this.overlayColor = Colors.cyan,
this.valueIndicatorColor = Colors.grey,
this.inactiveTickMarkColor = Colors.black87,
this.thumbRadius = 11,
this.overlayThumbRadius = 15,
this.currencyPrefix = "\$",
this.labelDirection = NumericLabelDirection.below,
this.tickMarkRadius = 3,
this.numericLabelTextStyle = const TextStyle(color: Colors.black, fontSize: 14.0, fontFamily: 'Roboto'),
}) : assert(inputValues.isNotEmpty, "Please add values"),
super(key: key);