DraggableScrollbar constructor
const
DraggableScrollbar({
- Key? key,
- required Widget child,
- Color backgroundColor = Colors.white,
- Color drawColor = Colors.grey,
- double heightScrollThumb = 48.0,
- EdgeInsetsGeometry? padding,
- bool alwaysVisibleThumb = true,
- Duration thumbAnimationDuration = kThemeAnimationDuration,
- Duration thumbVisibleDuration = const Duration(milliseconds: 1000),
- int totalCount = 1,
- int initialScrollIndex = 0,
- int currentFirstIndex = 0,
- required ScrollThumbBuilder scrollThumbBuilder,
- ValueChanged<
double> ? onChange, - 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,
});