MarqueePainter class

Constructors

MarqueePainter(Paragraph text, {Paint? startGradient, Paint? endGradient, required TextStyle textStyle, required double xOffset, required Size textSize, required double runSpacing, bool animated = false})

Properties

animated → bool
final
endGradient → Paint?
final
runSpacing → double
final
startGradient → Paint?
final
text → Paragraph
final
textScaleFactor ↔ double
getter/setter pair
textSize → Size
final
textStyle → TextStyle
final
xOffset → double
final

Methods

paint(Canvas canvas, Size size) → void
Called whenever the object needs to paint. The given Canvas has its coordinate space configured such that the origin is at the top left of the box. The area of the box is the size of the size argument.
shouldRepaint(covariant CustomPainter oldDelegate) → bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former).