RawTransformScrollbarController class
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})
-
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