CustomSlider constructor

const CustomSlider({
  1. Key? key,
  2. required double value,
  3. required ValueChanged<double> onChanged,
  4. double min = 0.0,
  5. double max = 1.0,
  6. int? divisions,
  7. Color activeColor = Colors.blue,
  8. Color inactiveColor = Colors.grey,
  9. String? label,
  10. double trackHeight = 4.0,
  11. double thumbRadius = 10.0,
})

Implementation

const CustomSlider({
  Key? key,
  required this.value,
  required this.onChanged,
  this.min = 0.0,
  this.max = 1.0,
  this.divisions,
  this.activeColor = Colors.blue,
  this.inactiveColor = Colors.grey,
  this.label,
  this.trackHeight = 4.0,
  this.thumbRadius = 10.0,
}) : super(key: key);