AnimatedCheckPainter constructor

AnimatedCheckPainter({
  1. required double progress,
  2. required Color color,
  3. required double strokeWidth,
})

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.0
  • color (Color, required): checkmark stroke color
  • strokeWidth (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,
});