mirror of
https://github.com/xvrh/lottie-flutter.git
synced 2025-08-06 16:39:36 +08:00
Expose LottieDelegates to modify animation properties at runtime (#23)
This commit is contained in:
@ -81,7 +81,9 @@ class _Painter extends CustomPainter {
|
||||
var columns = 10;
|
||||
for (var i = 0; i < frameCount; i++) {
|
||||
var destRect = Offset(i % columns * 50.0, i ~/ 10 * 80.0) & (size / 5);
|
||||
drawable.draw(canvas, destRect, progress: i / frameCount);
|
||||
drawable
|
||||
..setProgress(i / frameCount)
|
||||
..draw(canvas, destRect);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user