Inheritance
System.Object
ScrollbarPainter
public class ScrollbarPainter : ChangeNotifier, CustomPainter, Listenable
Constructors
ScrollbarPainter(Color, TextDirection, Single, Animation<Single>, Single, Single, Radius, Single, Single)
Declaration
public ScrollbarPainter(Color color, TextDirection textDirection, float thickness, Animation<float> fadeoutOpacityAnimation, float mainAxisMargin = 0F, float crossAxisMargin = 0F, Radius radius = null, float minLength = 18F, float minOverscrollLength = 18F)
Parameters
Type |
Name |
Description |
Color |
color |
|
TextDirection |
textDirection |
|
System.Single |
thickness |
|
Animation<System.Single> |
fadeoutOpacityAnimation |
|
System.Single |
mainAxisMargin |
|
System.Single |
crossAxisMargin |
|
Radius |
radius |
|
System.Single |
minLength |
|
System.Single |
minOverscrollLength |
|
Fields
Declaration
Field Value
Declaration
public float crossAxisMargin
Field Value
Type |
Description |
System.Single |
|
Declaration
public Animation<float> fadeoutOpacityAnimation
Field Value
mainAxisMargin
Declaration
public float mainAxisMargin
Field Value
Type |
Description |
System.Single |
|
Declaration
Field Value
Type |
Description |
System.Single |
|
Declaration
public float minOverscrollLength
Field Value
Type |
Description |
System.Single |
|
Declaration
Field Value
textDirection
Declaration
public TextDirection? textDirection
Field Value
Declaration
Field Value
Type |
Description |
System.Single |
|
Methods
Declaration
public override void dispose()
Overrides
Declaration
public bool? hitTest(Offset position)
Parameters
Type |
Name |
Description |
Offset |
position |
|
Returns
Type |
Description |
System.Nullable<System.Boolean> |
|
Implements
Declaration
public void paint(Canvas canvas, Size size)
Parameters
Implements
Declaration
public bool shouldRepaint(CustomPainter oldRaw)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
Declaration
public void update(ScrollMetrics metrics, AxisDirection axisDirection)
Parameters