Skip to content

v0.6.0

Choose a tag to compare

@xvrh xvrh released this 24 Aug 05:45
· 139 commits to master since this release
548c77d
  • Runs the animation at the frame rate specified in the json file (ie. An animation encoded with a 20 FPS will only be paint 20 times per seconds even though the AnimationController will invalidate the widget 60 times per seconds).
    The new frameRate property allows to opt-out this behaviour and have the widget to repaint at the device frame rate (FrameRate.max).
  • Automatically adds a RepaintBoundary around the widget. Since Lottie animations are generally complex to paint, a RepaintBoundary will separate the animation with the rest of the app and improve performance. A new property addRepaintBoundary allows to opt-out this behaviour.
  • Fixes a bug where we would call markNeedPaint when the animation was not changing. This removes unnecessary paints in animations with static periods.