Expose LottieDelegates to modify animation properties at runtime (#23)

This commit is contained in:
Xavier H
2020-03-02 22:11:38 +01:00
committed by GitHub
parent 4ae257eaab
commit e89c3c4914
93 changed files with 1372 additions and 343 deletions

View File

@ -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);
}
}