ScrollBar constructor
ScrollBar({
- DiscreteScrollController? controller,
- int? viewportHeight,
- int? totalItems,
- int? scrollOffset,
- void onScrollChanged(
- int newOffset
- LayoutDirection direction = LayoutDirection.vertical,
- Style trackStyle = const Style(modifiers: Modifier.dim),
- Style thumbStyle = const Style(modifiers: Modifier.reverse),
- String thumbChar = '█',
- String trackChar = '░',
Creates a ScrollBar widget.
Implementation
ScrollBar({
this.controller,
this.viewportHeight,
this.totalItems,
this.scrollOffset,
this.onScrollChanged,
this.direction = LayoutDirection.vertical,
this.trackStyle = const Style(modifiers: Modifier.dim),
this.thumbStyle = const Style(modifiers: Modifier.reverse),
this.thumbChar = '█',
this.trackChar = '░',
});