SimpleTransformScrollbarController constructor
SimpleTransformScrollbarController({
- required Color color,
- required Animation<
double> fadeoutOpacityAnimationVertical, - required Animation<
double> fadeoutOpacityAnimationHorizontal, - Color trackColor = const Color(0x00000000),
- Color trackBorderColor = const Color(0x00000000),
- TextDirection? textDirection,
- double thickness = _kScrollbarThickness,
- EdgeInsets padding = EdgeInsets.zero,
- double mainAxisMargin = 0.0,
- double crossAxisMargin = 0.0,
- Radius? radius,
- Radius? trackRadius,
- OutlinedBorder? shape,
- double minLength = _kMinThumbExtent,
- double? minOverscrollLength,
- bool ignorePointer = false,
Implementation
SimpleTransformScrollbarController({
required Color color,
required this.fadeoutOpacityAnimationVertical,
required this.fadeoutOpacityAnimationHorizontal,
Color trackColor = const Color(0x00000000),
Color trackBorderColor = const Color(0x00000000),
TextDirection? textDirection,
double thickness = _kScrollbarThickness,
EdgeInsets padding = EdgeInsets.zero,
double mainAxisMargin = 0.0,
double crossAxisMargin = 0.0,
Radius? radius,
Radius? trackRadius,
OutlinedBorder? shape,
double minLength = _kMinThumbExtent,
double? minOverscrollLength,
bool ignorePointer = false,
}) : super(
verticalScrollbar: PublicScrollbarPainter(
color: color,
fadeoutOpacityAnimation: fadeoutOpacityAnimationVertical,
trackColor: trackColor,
trackBorderColor: trackBorderColor,
textDirection: textDirection,
thickness: thickness,
padding: padding,
mainAxisMargin: mainAxisMargin,
crossAxisMargin: crossAxisMargin,
radius: radius,
trackRadius: trackRadius,
shape: shape,
minLength: minLength,
minOverscrollLength: minOverscrollLength,
scrollbarOrientation: ScrollbarOrientation.right,
ignorePointer: ignorePointer,
),
horizontalScrollbar: PublicScrollbarPainter(
color: color,
fadeoutOpacityAnimation: fadeoutOpacityAnimationHorizontal,
trackColor: trackColor,
trackBorderColor: trackBorderColor,
textDirection: textDirection,
thickness: thickness,
padding: padding,
mainAxisMargin: mainAxisMargin,
crossAxisMargin: crossAxisMargin,
radius: radius,
trackRadius: trackRadius,
shape: shape,
minLength: minLength,
minOverscrollLength: minOverscrollLength,
scrollbarOrientation: ScrollbarOrientation.bottom,
ignorePointer: ignorePointer,
),
textDirection: textDirection ?? TextDirection.ltr,
);