DraggableScrollbar.semicircle constructor
DraggableScrollbar.semicircle({
- Key? key,
- Key? scrollThumbKey,
- bool alwaysVisibleScrollThumb = false,
- required BoxScrollView 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),
- LabelTextBuilder? labelTextBuilder,
- BoxConstraints? labelConstraints,
Implementation
DraggableScrollbar.semicircle({
Key? key,
Key? scrollThumbKey,
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.labelTextBuilder,
this.labelConstraints,
}) : assert(child.scrollDirection == Axis.vertical),
scrollThumbBuilder = _thumbSemicircleBuilder(
heightScrollThumb * 0.6, scrollThumbKey, alwaysVisibleScrollThumb),
super(key: key);