MaterialScrollbarTransformController constructor
MaterialScrollbarTransformController({
- required TickerProvider vsync,
- required TransformScrollbarWidgetInterface controlInterface,
- bool? thumbVisibility,
- bool? trackVisibility,
- bool? showTrackOnHover,
- double? thickness,
- Radius? radius,
- 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();
}