DraggableScrollbar constructor
DraggableScrollbar({
- Key? key,
- Key? scrollThumbKey,
- ScrollbarStyle scrollbarStyle = ScrollbarStyle.semicircle,
- bool alwaysVisibleScrollThumb = false,
- required Widget child,
- required ScrollController controller,
- double heightScrollThumb = 48.0,
- Color backgroundColor = Colors.white,
- EdgeInsetsGeometry? padding,
- Duration scrollbarAnimationDuration = const Duration(milliseconds: 300),
- Duration scrollbarTimeToFade = const Duration(milliseconds: 600),
- LabelBuilder? labelBuilder,
- 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);