ScrollBar constructor

ScrollBar({
  1. DiscreteScrollController? controller,
  2. int? viewportHeight,
  3. int? totalItems,
  4. int? scrollOffset,
  5. void onScrollChanged(
    1. int newOffset
    )?,
  6. LayoutDirection direction = LayoutDirection.vertical,
  7. Style trackStyle = const Style(modifiers: Modifier.dim),
  8. Style thumbStyle = const Style(modifiers: Modifier.reverse),
  9. String thumbChar = '█',
  10. 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 = '░',
});