RotaryScrollbar constructor

const RotaryScrollbar({
  1. Key? key,
  2. required ScrollController controller,
  3. double padding = 8,
  4. double width = 8,
  5. bool autoHide = true,
  6. Curve opacityAnimationCurve = Curves.easeInOut,
  7. Duration opacityAnimationDuration = const Duration(milliseconds: 250),
  8. Duration autoHideDuration = const Duration(seconds: 3),
  9. bool hasHapticFeedback = true,
  10. Duration pageTransitionDuration = const Duration(milliseconds: 250),
  11. Curve pageTransitionCurve = Curves.easeInOutCirc,
  12. double scrollMagnitude = 50,
  13. Duration scrollAnimationDuration = const Duration(milliseconds: 100),
  14. Curve scrollAnimationCurve = Curves.linear,
})

A scrollbar which curves around circular screens and reacts to Rotary events. Similar to native wearOS scrollbar in devices with round screens.

Implementation

const RotaryScrollbar({
  super.key,
  required this.controller,
  this.padding = 8,
  this.width = 8,
  this.autoHide = true,
  this.opacityAnimationCurve = Curves.easeInOut,
  this.opacityAnimationDuration = const Duration(milliseconds: 250),
  this.autoHideDuration = const Duration(seconds: 3),
  this.hasHapticFeedback = true,
  this.pageTransitionDuration = const Duration(milliseconds: 250),
  this.pageTransitionCurve = Curves.easeInOutCirc,
  this.scrollMagnitude = 50,
  this.scrollAnimationDuration = const Duration(milliseconds: 100),
  this.scrollAnimationCurve = Curves.linear,
});