RawScrollbarModifier constructor

const RawScrollbarModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. ScrollController? controller,
  5. bool? thumbVisibility,
  6. OutlinedBorder? shape,
  7. Radius? radius,
  8. double? thickness,
  9. Color? thumbColor,
  10. double minThumbLength = _kMinThumbExtent,
  11. double? minOverscrollLength,
  12. bool? trackVisibility,
  13. Radius? trackRadius,
  14. Color? trackColor,
  15. Color? trackBorderColor,
  16. Duration fadeDuration = _kScrollbarFadeDuration,
  17. Duration timeToFade = _kScrollbarTimeToFade,
  18. Duration pressDuration = Duration.zero,
  19. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  20. bool? interactive,
  21. ScrollbarOrientation? scrollbarOrientation,
  22. double mainAxisMargin = 0.0,
  23. double crossAxisMargin = 0.0,
  24. @Deprecated('Use thumbVisibility instead. ' 'This feature was deprecated after v2.9.0-1.0.pre.') bool? isAlwaysShown,
})

Creates a basic raw scrollbar that wraps the given child.

The child, or a descendant of the child, should be a source of ScrollNotification notifications, typically a Scrollable widget.

The child, fadeDuration, pressDuration, and timeToFade arguments must not be null.

Implementation

const RawScrollbarModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.controller,
  this.thumbVisibility,
  this.shape,
  this.radius,
  this.thickness,
  this.thumbColor,
  this.minThumbLength = _kMinThumbExtent,
  this.minOverscrollLength,
  this.trackVisibility,
  this.trackRadius,
  this.trackColor,
  this.trackBorderColor,
  this.fadeDuration = _kScrollbarFadeDuration,
  this.timeToFade = _kScrollbarTimeToFade,
  this.pressDuration = Duration.zero,
  this.notificationPredicate = defaultScrollNotificationPredicate,
  this.interactive,
  this.scrollbarOrientation,
  this.mainAxisMargin = 0.0,
  this.crossAxisMargin = 0.0,
  @Deprecated(
    'Use thumbVisibility instead. '
    'This feature was deprecated after v2.9.0-1.0.pre.',
  )
      this.isAlwaysShown,
});