We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90a491f commit f5d710fCopy full SHA for f5d710f
lib/badge_animation/ani_snowflake.dart
@@ -8,9 +8,9 @@ class SnowFlakeAnimation extends BadgeAnimation {
8
int newGridWidth = processGrid[0].length;
9
10
int framesCount = (newGridWidth / badgeWidth).ceil();
11
+ framesCount = framesCount == 0 ? 1 : framesCount;
12
13
int currentFrame = animationIndex % framesCount;
-
14
int startCol = currentFrame * badgeWidth;
15
16
for (int i = 0; i < badgeHeight; i++) {
@@ -20,4 +20,4 @@ class SnowFlakeAnimation extends BadgeAnimation {
20
}
21
22
23
-}
+}
0 commit comments