DraggableScrollbar constructor

const DraggableScrollbar({
  1. Key? key,
  2. required Widget child,
  3. Color backgroundColor = Colors.white,
  4. Color drawColor = Colors.grey,
  5. double heightScrollThumb = 48.0,
  6. EdgeInsetsGeometry? padding,
  7. bool alwaysVisibleThumb = true,
  8. Duration thumbAnimationDuration = kThemeAnimationDuration,
  9. Duration thumbVisibleDuration = const Duration(milliseconds: 1000),
  10. int totalCount = 1,
  11. int initialScrollIndex = 0,
  12. int currentFirstIndex = 0,
  13. required ScrollThumbBuilder scrollThumbBuilder,
  14. ValueChanged<double>? onChange,
  15. Axis scrollDirection = Axis.vertical,
})

Implementation

const DraggableScrollbar({
  super.key,
  required this.child,
  this.backgroundColor = Colors.white,
  this.drawColor = Colors.grey,
  this.heightScrollThumb = 48.0,
  this.padding,
  this.alwaysVisibleThumb = true,
  this.thumbAnimationDuration = kThemeAnimationDuration,
  this.thumbVisibleDuration = const Duration(milliseconds: 1000),
  this.totalCount = 1,
  this.initialScrollIndex = 0,
  this.currentFirstIndex = 0,
  required this.scrollThumbBuilder,
  this.onChange,
  this.scrollDirection = Axis.vertical,
});