MaterialScrollbarTransformController constructor

MaterialScrollbarTransformController({
  1. required TickerProvider vsync,
  2. required TransformScrollbarWidgetInterface controlInterface,
  3. bool? thumbVisibility,
  4. bool? trackVisibility,
  5. bool? showTrackOnHover,
  6. double? thickness,
  7. Radius? radius,
  8. bool? interactive,
})

Implementation

MaterialScrollbarTransformController({
  required super.vsync,
  required super.controlInterface,
  super.thumbVisibility,
  super.trackVisibility,
  this.showTrackOnHover,
  super.thickness,
  super.radius,
  super.interactive,
})  : _hoverAnimationControllerV = AnimationController(
        vsync: vsync,
        duration: const Duration(milliseconds: 200),
      ),
      _hoverAnimationControllerH = AnimationController(
        vsync: vsync,
        duration: const Duration(milliseconds: 200),
      ),
      super(
        fadeDuration: _kScrollbarFadeDuration,
        timeToFade: _kScrollbarTimeToFade,
        pressDuration: Duration.zero,
      ) {
  _hoverAnimationControllerV.addListener(() {
    updateScrollbarPainter(true);
  });
  _hoverAnimationControllerH.addListener(() {
    updateScrollbarPainter(false);
  });
  onDidChangeDependencies();
}