RoundScrollbar constructor

const RoundScrollbar({
  1. required Widget child,
  2. 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. Color? trackColor,
  10. Color? thumbColor,
  11. Key? key,
})

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

Implementation

const RoundScrollbar({
  required this.child,
  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.trackColor,
  this.thumbColor,
  super.key,
});