diff --git a/packages/flame_lottie/lib/src/lottie_renderer.dart b/packages/flame_lottie/lib/src/lottie_renderer.dart index 241419ce099..dd672a85e3d 100644 --- a/packages/flame_lottie/lib/src/lottie_renderer.dart +++ b/packages/flame_lottie/lib/src/lottie_renderer.dart @@ -35,7 +35,7 @@ class LottieRenderer { ..enableMergePaths = enableMergePaths ?? false, _controller = controller ?? EffectController( - duration: duration ?? composition.duration.inSeconds.toDouble(), + duration: duration ?? composition.duration.inMilliseconds / 1000, infinite: repeating ?? false, ) { size.addListener(() {