ExtendedTransformScrollbarController class

Inheritance
Implemented types
Implementers

Constructors

ExtendedTransformScrollbarController({required AnimationController fadeoutAnimationControllerVertical, required AnimationController fadeoutAnimationControllerHorizontal, 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 setter
controlInterface TransformScrollbarWidgetInterface
Provide a way to update your scrollbar if the thumb is dragged.
final
crossAxisMargin double
Distance from the scrollbar thumb's side to the nearest cross axis edge in logical pixels.
final
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 setteroverride
fadeDuration Duration
The Duration of the fade animation.
final
fadeoutAnimationControllerHorizontal AnimationController
final
fadeoutAnimationControllerVertical AnimationController
final
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.
final
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.
final
minOverscrollLength double?
The preferred smallest size the scrollbar thumb can shrink to when viewport is overscrolled.
final
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.
final
padding EdgeInsets?
The insets by which the scrollbar thumb and track should be padded.
final
physics ScrollPhysics
no setter
pressDuration Duration
The Duration of time that a LongPress will trigger the drag gesture of the scrollbar thumb.
final
radius Radius?
The Radius of the scrollbar thumb's rounded rectangle corners.
final
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 pair
shape OutlinedBorder?
The OutlinedBorder of the scrollbar's thumb.
final
shouldAllowMouseScroll bool
no setter
showScrollbarH bool
no setter
showScrollbarV bool
Overridable getter to indicate that the scrollbar should be visible, even when a scroll is not underway.
no setter
thickness double?
The thickness of the scrollbar in the cross axis of the scrollable.
final
thumbColor Color?
The color of the scrollbar thumb.
final
thumbVisibility bool?
Indicates that the scrollbar thumb should be visible, even when a scroll is not underway.
final
timeToFade Duration
The Duration of time until the fade animation begins.
final
trackBorderColor Color?
The color of the scrollbar track's border.
final
trackColor Color?
The color of the scrollbar track.
final
trackRadius Radius?
The Radius of the scrollbar track's rounded rectangle corners.
final
trackVisibilityH bool?
final
trackVisibilityV bool?
Indicates that the scrollbar track should be visible.
final
verticalScrollbar PublicScrollbarPainter
finalinherited

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>>
override
getGesturesVertical(BuildContext context) Map<Type, GestureRecognizerFactory<GestureRecognizer>>
override
getScrollMetricsH(Matrix4 transform, Size viewport, Size content) ScrollMetrics
inherited
getScrollMetricsV(Matrix4 transform, Size viewport, Size content) ScrollMetrics
inherited
handleHover(PointerHoverEvent event) → void
override
handleHoverExit(PointerExitEvent event) → void
override
handleHoverExitH(PointerExitEvent event) → void
Initiates the fade out animation.
handleHoverExitV(PointerExitEvent event) → void
Initiates the fade out animation.
handleHoverH(PointerHoverEvent event) → void
handleHoverV(PointerHoverEvent event) → void
handleThumbPressEndHorizontal(Offset position, Velocity velocity) → void
Handler called when a long press on horizontal scrollbar has ended.
handleThumbPressEndVertical(Offset position, Velocity velocity) → void
Handler called when a long press on vertical scrollbar has ended.
handleThumbPressHorizontal() → void
handleThumbPressStartHorizontal(Offset position) → void
Handler called when a long press gesture has started on the horizontal scrollbar.
handleThumbPressStartVertical(Offset position) → void
Handler called when a long press gesture has started on the vertical scrollbar.
handleThumbPressUpdateHorizontal(Offset position) → void
Handler called when a currently active long press gesture moves.
handleThumbPressUpdateVertical(Offset position) → void
Handler called when a currently active long press gesture moves.
handleThumbPressVertical() → void
Handler called when a press on the vertical scrollbar thumb has been recognized.
handleTrackTapDownHorizontal(TapDownDetails details) → void
handleTrackTapDownVertical(TapDownDetails details) → void
isPointerOverScrollbarH(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the track or thumb of the horizontal Scrollbar.
isPointerOverScrollbarV(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the track or thumb of the vertical Scrollbar.
isPointerOverThumbH(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the thumb of the horizontal Scrollbar.
isPointerOverThumbV(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the thumb of the vertical Scrollbar.
isPointerOverTrackH(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the track of the horizontal Scrollbar.
isPointerOverTrackV(Offset position, PointerDeviceKind kind) bool
Returns true if the provided Offset is located over the track of the vertical Scrollbar.
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.
override
onDidUpdateWidget() → void
onScrollEnd() → void
override
onScrollEndHorizontal() → void
onScrollEndVertical() → void
onScrollStart() → void
override
onScrollStartHorizontal() → void
override
onScrollStartVertical() → void
override
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
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.
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.
override
updateVerticalScrollPosition(Offset updatedOffset) → void

Operators

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