CNSlider constructor

const CNSlider({
  1. Key? key,
  2. required double value,
  3. required ValueChanged<double> onChanged,
  4. double min = 0.0,
  5. double max = 1.0,
  6. bool enabled = true,
  7. CNSliderController? controller,
  8. double height = 44.0,
  9. Color? color,
  10. Color? thumbColor,
  11. Color? trackColor,
  12. Color? trackBackgroundColor,
  13. double? step,
})

Creates a Cupertino-native slider.

Implementation

const CNSlider({
  super.key,
  required this.value,
  required this.onChanged,
  this.min = 0.0,
  this.max = 1.0,
  this.enabled = true,
  this.controller,
  this.height = 44.0,
  this.color,
  this.thumbColor,
  this.trackColor,
  this.trackBackgroundColor,
  this.step,
});