MaterialScrollbarTransformController class
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
-
getThumbColor({required bool isVertical})
→ WidgetStateProperty<Color>
-
-
handleHover(PointerHoverEvent event)
→ void
-
inherited
-
handleHoverExit(PointerExitEvent event)
→ void
-
inherited
-
handleHoverExitH(PointerExitEvent event)
→ void
-
Initiates the fade out animation.
override
-
handleHoverExitV(PointerExitEvent event)
→ void
-
Initiates the fade out animation.
override
-
handleHoverH(PointerHoverEvent event)
→ void
-
override
-
handleHoverV(PointerHoverEvent event)
→ void
-
override
-
handleThumbPressEndHorizontal(Offset position, Velocity velocity)
→ void
-
Handler called when a long press on horizontal scrollbar has ended.
override
-
handleThumbPressEndVertical(Offset position, Velocity velocity)
→ void
-
Handler called when a long press on vertical scrollbar has ended.
override
-
handleThumbPressHorizontal()
→ void
-
inherited
-
handleThumbPressStartHorizontal(Offset position)
→ void
-
Handler called when a long press gesture has started on the horizontal scrollbar.
override
-
handleThumbPressStartVertical(Offset position)
→ void
-
Handler called when a long press gesture has started on the vertical scrollbar.
override
-
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.
override
-
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.
override
-
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