RoundScrollbar constructor

const RoundScrollbar({
  1. required ScrollController controller,
  2. double padding = 8,
  3. double width = 8,
  4. bool autoHide = true,
  5. Curve opacityAnimationCurve = Curves.easeInOut,
  6. Duration opacityAnimationDuration = const Duration(milliseconds: 250),
  7. Duration autoHideDuration = const Duration(seconds: 3),
  8. Color? trackColor,
  9. Color? thumbColor,
  10. Key? key,
})

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

Implementation

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