AnimatedCheckPainter constructor
AnimatedCheckPainter({})
Creates an AnimatedCheckPainter.
All parameters are required as they directly control the checkmark appearance and animation state. The painter should be recreated when any parameter changes.
Parameters:
progress
(double, required): animation progress 0.0-1.0color
(Color, required): checkmark stroke colorstrokeWidth
(double, required): stroke thickness in logical pixels
Example usage within CustomPaint:
CustomPaint(
painter: AnimatedCheckPainter(
progress: animationValue,
color: theme.primaryForeground,
strokeWidth: 2.0,
),
)
Implementation
AnimatedCheckPainter({
required this.progress,
required this.color,
required this.strokeWidth,
});