GlassSlider constructor

const GlassSlider({
  1. required double value,
  2. required ValueChanged<double>? onChanged,
  3. Key? key,
  4. ValueChanged<double>? onChangeStart,
  5. ValueChanged<double>? onChangeEnd,
  6. double min = 0.0,
  7. double max = 1.0,
  8. int? divisions,
  9. String? label,
  10. Color? activeColor,
  11. Color? inactiveColor,
  12. Color thumbColor = CupertinoColors.white,
  13. List<BoxShadow>? thumbShadow,
  14. double trackHeight = 4.0,
  15. double thumbRadius = 15.0,
  16. LiquidGlassSettings? settings,
  17. bool useOwnLayer = false,
  18. GlassQuality? quality,
  19. GlassInteractionBehavior interactionBehavior = GlassInteractionBehavior.full,
  20. Color? glowColor,
  21. double glowRadius = 1.5,
  22. FocusNode? focusNode,
  23. bool autofocus = false,
})

Creates a glass slider.

Implementation

const GlassSlider({
  required this.value,
  required this.onChanged,
  super.key,
  this.onChangeStart,
  this.onChangeEnd,
  this.min = 0.0,
  this.max = 1.0,
  this.divisions,
  this.label,
  this.activeColor,
  this.inactiveColor,
  this.thumbColor = CupertinoColors.white,
  this.thumbShadow,
  this.trackHeight = 4.0,
  this.thumbRadius = 15.0,
  this.settings,
  this.useOwnLayer = false,
  this.quality,
  // ── iOS 26 interaction ──────────────────────────────────────────────────────
  this.interactionBehavior = GlassInteractionBehavior.full,
  this.glowColor,
  this.glowRadius = 1.5,
  this.focusNode,
  this.autofocus = false,
});