GlassSlider constructor

const GlassSlider({
  1. Key? key,
  2. required double value,
  3. required ValueChanged<double>? onChanged,
  4. double min = 0,
  5. double max = 1,
  6. int? divisions,
  7. ValueChanged<double>? onChangeStart,
  8. ValueChanged<double>? onChangeEnd,
  9. Color? activeColor,
  10. String? semanticLabel,
  11. FocusNode? focusNode,
  12. bool autofocus = false,
})

Creates a slider at value, from min to max.

Implementation

const GlassSlider({
  super.key,
  required this.value,
  required this.onChanged,
  this.min = 0,
  this.max = 1,
  this.divisions,
  this.onChangeStart,
  this.onChangeEnd,
  this.activeColor,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
}) : assert(divisions == null || divisions > 0);