GlassSlider constructor
const
GlassSlider({
- required double value,
- required ValueChanged<
double> ? onChanged, - Key? key,
- ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - double min = 0.0,
- double max = 1.0,
- int? divisions,
- String? label,
- Color? activeColor,
- Color? inactiveColor,
- Color thumbColor = CupertinoColors.white,
- double trackHeight = 4.0,
- double thumbRadius = 15.0,
- LiquidGlassSettings? settings,
- bool useOwnLayer = false,
- GlassQuality? quality,
- GlassInteractionBehavior interactionBehavior = GlassInteractionBehavior.full,
- Color? glowColor,
- double glowRadius = 1.5,
- FocusNode? focusNode,
- 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.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,
});