RawTransformScrollbarController class

Inheritance
Implementers

Constructors

RawTransformScrollbarController({required TickerProvider vsync, required TransformScrollbarWidgetInterface controlInterface, ScrollPhysics? scrollPhysics, bool? thumbVisibility, OutlinedBorder? shape, Radius? radius, double? thickness, Color? thumbColor, double minThumbLength = _kMinThumbExtent, double? minOverscrollLength, bool? trackVisibility, Radius? trackRadius, Color? trackColor, Color? trackBorderColor, Duration fadeDuration = _kScrollbarFadeDuration, Duration timeToFade = _kScrollbarTimeToFade, Duration pressDuration = Duration.zero, bool? interactive, double mainAxisMargin = 0.0, double crossAxisMargin = 0.0, EdgeInsets? padding})

Properties

context BuildContext
no setterinherited
controlInterface TransformScrollbarWidgetInterface
Provide a way to update your scrollbar if the thumb is dragged.
finalinherited
crossAxisMargin double
Distance from the scrollbar thumb's side to the nearest cross axis edge in logical pixels.
finalinherited
devicePixelRatio double
A changed devicePixelRatio doesn't change anything in thee default implementation. Therefore, it is always 1.0, without checking the actual devicePixelRatio.
no setterinherited
enableGestures bool
Overridable getter to indicate is gestures should be enabled on the scrollbar.
no setterinherited
fadeDuration Duration
The Duration of the fade animation.
finalinherited
fadeoutAnimationControllerHorizontal AnimationController
finalinherited
fadeoutAnimationControllerVertical AnimationController
finalinherited
fadeoutOpacityAnimationHorizontal Animation<double>
finalinherited
fadeoutOpacityAnimationVertical Animation<double>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
horizontalScrollbar PublicScrollbarPainter
finalinherited
interactive bool?
Whether the Scrollbar should be interactive and respond to dragging on the thumb, or tapping in the track area.
finalinherited
mainAxisMargin double
Distance from the scrollbar thumb's start or end to the nearest edge of the viewport in logical pixels. It affects the amount of available paint area.
finalinherited
minOverscrollLength double?
The preferred smallest size the scrollbar thumb can shrink to when viewport is overscrolled.
finalinherited
minThumbLength double
The preferred smallest size the scrollbar thumb can shrink to when the total scrollable extent is large, the current visible viewport is small, and the viewport is not overscrolled.
finalinherited
padding EdgeInsets?
The insets by which the scrollbar thumb and track should be padded.
finalinherited
physics ScrollPhysics
no setterinherited
pressDuration Duration
The Duration of time that a LongPress will trigger the drag gesture of the scrollbar thumb.
finalinherited
radius Radius?
The Radius of the scrollbar thumb's rounded rectangle corners.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollPhysics ScrollPhysics?
The ScrollPhysics that will determine how the scrollbar behaves.
getter/setter pairinherited
shape OutlinedBorder?
The OutlinedBorder of the scrollbar's thumb.
finalinherited
shouldAllowMouseScroll bool
no setterinherited
showScrollbarH bool
no setterinherited
showScrollbarV bool
Overridable getter to indicate that the scrollbar should be visible, even when a scroll is not underway.
no setterinherited
thickness double?
The thickness of the scrollbar in the cross axis of the scrollable.
finalinherited
thumbColor Color?
The color of the scrollbar thumb.
finalinherited
thumbVisibility bool?
Indicates that the scrollbar thumb should be visible, even when a scroll is not underway.
finalinherited
timeToFade Duration
The Duration of time until the fade animation begins.
finalinherited
trackBorderColor Color?
The color of the scrollbar track's border.
finalinherited
trackColor Color?
The color of the scrollbar track.
finalinherited
trackRadius Radius?
The Radius of the scrollbar track's rounded rectangle corners.
finalinherited
trackVisibilityH bool?
finalinherited
trackVisibilityV bool?
Indicates that the scrollbar track should be visible.
finalinherited
verticalScrollbar PublicScrollbarPainter
finalinherited
vsync TickerProvider
The TickerProvider for the Fade in and out animations of the scrollbars.
final

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
getGesturesHorizontal(BuildContext context) Map<Type, GestureRecognizerFactory<GestureRecognizer>>
inherited
getGesturesVertical(BuildContext context) Map<Type, GestureRecognizerFactory<GestureRecognizer>>
inherited
getScrollMetricsH(Matrix4 transform, Size viewport, Size content) ScrollMetrics
inherited
getScrollMetricsV(Matrix4 transform, Size viewport, Size content) ScrollMetrics
inherited
handleHover(PointerHoverEvent event) → void
inherited
handleHoverExit(PointerExitEvent event) → void
inherited
handleHoverExitH(PointerExitEvent event) → void
Initiates the fade out animation.
inherited
handleHoverExitV(PointerExitEvent event) → void
Initiates the fade out animation.
inherited
handleHoverH(PointerHoverEvent event) → void
inherited
handleHoverV(PointerHoverEvent event) → void
inherited
handleThumbPressEndHorizontal(Offset position, Velocity velocity) → void
Handler called when a long press on horizontal scrollbar has ended.
inherited
handleThumbPressEndVertical(Offset position, Velocity velocity) → void
Handler called when a long press on vertical scrollbar has ended.
inherited
handleThumbPressHorizontal() → void
inherited
handleThumbPressStartHorizontal(Offset position) → void
Handler called when a long press gesture has started on the horizontal scrollbar.
inherited
handleThumbPressStartVertical(Offset position) → void
Handler called when a long press gesture has started on the vertical scrollbar.
inherited
handleThumbPressUpdateHorizontal(Offset position) → void
Handler called when a currently active long press gesture moves.
inherited
handleThumbPressUpdateVertical(Offset position) → void
Handler called when a currently active long press gesture moves.
inherited
handleThumbPressVertical() → void
Handler called when a press on the vertical scrollbar thumb has been recognized.
inherited
handleTrackTapDownHorizontal(TapDownDetails details) → void
inherited
handleTrackTapDownVertical(TapDownDetails details) → void
inherited
isPointerOverScrollbarH(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the track or thumb of the horizontal Scrollbar.
inherited
isPointerOverScrollbarV(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the track or thumb of the vertical Scrollbar.
inherited
isPointerOverThumbH(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the thumb of the horizontal Scrollbar.
inherited
isPointerOverThumbV(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the thumb of the vertical Scrollbar.
inherited
isPointerOverTrackH(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the track of the horizontal Scrollbar.
inherited
isPointerOverTrackV(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the track of the vertical Scrollbar.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onDidChangeDependencies() → void
Can be overridden to update the scrollbar when the parents widget dependencies change.
inherited
onDidUpdateWidget() → void
inherited
onScrollEnd() → void
inherited
onScrollEndHorizontal() → void
inherited
onScrollEndVertical() → void
inherited
onScrollStart() → void
inherited
onScrollStartHorizontal() → void
inherited
onScrollStartVertical() → void
inherited
paint(PaintingContext context, Size viewport, {Offset? origin}) → void
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited
update(Matrix4 transform, Size viewport, Size content) → void
inherited
updateAndPaint(PaintingContext context, Matrix4 transform, Size viewport, Size content, {Offset? origin}) → void
inherited
updateHorizontalScrollPosition(Offset updatedOffset) → void
inherited
updateScrollbarPainter(bool vertical) → void
This method is responsible for configuring one scrollbarPainter according to the widget's properties and any inherited widgets the painter depends on, like Directionality and MediaQuery.
inherited
updateScrollbarPainters() → void
This method is responsible for configuring the horizontalScrollbar and verticalScrollbar according to the widget's properties and any inherited widgets the painter depends on, like Directionality and MediaQuery.
inherited
updateVerticalScrollPosition(Offset updatedOffset) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited