LabeledDynamicSlider constructor

LabeledDynamicSlider({
  1. Key? key,
  2. required List<int> inputValues,
  3. required dynamic onValueChanged(
    1. double val
    ),
  4. int? numberOfDivisions,
  5. double? trackHeight = 3,
  6. Color? thumbColor = Colors.blue,
  7. Color? activeTrackColor = Colors.blueGrey,
  8. Color? activeTickMarkColor = Colors.blue,
  9. Color? inactiveTrackColor = Colors.black12,
  10. Color? overlayColor = Colors.cyan,
  11. Color? valueIndicatorColor = Colors.grey,
  12. Color? inactiveTickMarkColor = Colors.black87,
  13. double? thumbRadius = 11,
  14. double? overlayThumbRadius = 15,
  15. String currencyPrefix = "\$",
  16. NumericLabelDirection? labelDirection = NumericLabelDirection.below,
  17. double? tickMarkRadius = 3,
  18. 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);