RotaryScrollbar constructor
const
RotaryScrollbar({
- Key? key,
- required ScrollController controller,
- required Widget child,
- double padding = 8,
- double width = 8,
- bool autoHide = true,
- Curve opacityAnimationCurve = Curves.easeInOut,
- Duration opacityAnimationDuration = const Duration(milliseconds: 250),
- Duration autoHideDuration = const Duration(seconds: 3),
- bool hasHapticFeedback = true,
- Duration pageTransitionDuration = const Duration(milliseconds: 250),
- Curve pageTransitionCurve = Curves.easeInOutCirc,
- double scrollMagnitude = 50,
- Duration scrollAnimationDuration = const Duration(milliseconds: 100),
- 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,
});