GlassStepper constructor

const GlassStepper({
  1. Key? key,
  2. required double value,
  3. required ValueChanged<double>? onChanged,
  4. double min = 0.0,
  5. double max = 100.0,
  6. double step = 1.0,
  7. bool wraps = false,
  8. bool autoRepeat = true,
  9. Duration autoRepeatDelay = const Duration(milliseconds: 500),
  10. Duration autoRepeatInterval = const Duration(milliseconds: 100),
  11. double height = 34.0,
  12. double width = 94.0,
  13. double dividerWidth = 0.5,
  14. LiquidGlassSettings? settings,
  15. GlassQuality? quality,
})

Creates an iOS 26-style glass stepper.

Implementation

const GlassStepper({
  super.key,
  required this.value,
  required this.onChanged,
  this.min = 0.0,
  this.max = 100.0,
  this.step = 1.0,
  this.wraps = false,
  this.autoRepeat = true,
  this.autoRepeatDelay = const Duration(milliseconds: 500),
  this.autoRepeatInterval = const Duration(milliseconds: 100),
  this.height = 34.0,
  this.width = 94.0,
  this.dividerWidth = 0.5,
  this.settings,
  this.quality,
});