DraggableScrollbar constructor

DraggableScrollbar({
  1. Key? key,
  2. Key? scrollThumbKey,
  3. ScrollbarStyle scrollbarStyle = ScrollbarStyle.semicircle,
  4. bool alwaysVisibleScrollThumb = false,
  5. required Widget child,
  6. required ScrollController controller,
  7. double heightScrollThumb = 48.0,
  8. Color backgroundColor = Colors.white,
  9. EdgeInsetsGeometry? padding,
  10. Duration scrollbarAnimationDuration = const Duration(milliseconds: 300),
  11. Duration scrollbarTimeToFade = const Duration(milliseconds: 600),
  12. LabelBuilder? labelBuilder,
  13. BoxConstraints? labelConstraints,
})

Implementation

DraggableScrollbar({
  super.key,
  Key? scrollThumbKey,
  ScrollbarStyle scrollbarStyle = ScrollbarStyle.semicircle,
  this.alwaysVisibleScrollThumb = false,
  required this.child,
  required this.controller,
  this.heightScrollThumb = 48.0,
  this.backgroundColor = Colors.white,
  this.padding,
  this.scrollbarAnimationDuration = const Duration(milliseconds: 300),
  this.scrollbarTimeToFade = const Duration(milliseconds: 600),
  this.labelBuilder,
  this.labelConstraints,
}) : scrollThumbBuilder = _thumbBuilder(scrollThumbKey,
          alwaysVisibleScrollThumb, heightScrollThumb, scrollbarStyle);