DraggableScrollbar.custom constructor
const
DraggableScrollbar.custom({
- Key? key,
- bool alwaysVisibleScrollThumb = false,
- required double heightScrollThumb,
- required Color backgroundColor,
- required ScrollThumbBuilder scrollThumbBuilder,
- required Widget child,
- required ScrollController controller,
- EdgeInsetsGeometry? padding,
- Duration scrollbarAnimationDuration = const Duration(milliseconds: 300),
- Duration scrollbarTimeToFade = const Duration(milliseconds: 600),
- LabelBuilder? labelBuilder,
- BoxConstraints? labelConstraints,
Implementation
const DraggableScrollbar.custom({
super.key,
this.alwaysVisibleScrollThumb = false,
required this.heightScrollThumb,
required this.backgroundColor,
required this.scrollThumbBuilder,
required this.child,
required this.controller,
this.padding,
this.scrollbarAnimationDuration = const Duration(milliseconds: 300),
this.scrollbarTimeToFade = const Duration(milliseconds: 600),
this.labelBuilder,
this.labelConstraints,
});