CNSlider constructor
const
CNSlider({
- Key? key,
- required double value,
- required ValueChanged<
double> onChanged, - double min = 0.0,
- double max = 1.0,
- bool enabled = true,
- CNSliderController? controller,
- double height = 44.0,
- Color? color,
- Color? thumbColor,
- Color? trackColor,
- Color? trackBackgroundColor,
- double? step,
- bool autoHideOnModal = true,
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,
this.autoHideOnModal = true,
});