RotaryScrollbar constructor

const RotaryScrollbar({
  1. Key? key,
  2. required ScrollController controller,
  3. required Widget child,
  4. double padding = 8,
  5. double width = 8,
  6. bool autoHide = true,
  7. Curve opacityAnimationCurve = Curves.easeInOut,
  8. Duration opacityAnimationDuration = const Duration(milliseconds: 250),
  9. Duration autoHideDuration = const Duration(seconds: 3),
  10. bool hasHapticFeedback = true,
  11. Duration pageTransitionDuration = const Duration(milliseconds: 250),
  12. Curve pageTransitionCurve = Curves.easeInOutCirc,
  13. double scrollMagnitude = 50,
  14. Duration scrollAnimationDuration = const Duration(milliseconds: 100),
  15. 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,
  required this.child,
  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,
});