dnfield / lottie-flutter

A pure Dart/Flutter implementation of Lottie
Apache License 2.0
115 stars 24 forks source link

Missing values for keyframe #33

Open Durdonaa opened 5 years ago

Durdonaa commented 5 years ago

Animations are not rendering with the exception "Missing keyframe" Used example code provided by the developer team

Full exception: I/flutter ( 5428): creator: CustomPaint ← Lottie ← Column ← Center ← MediaQuery ← LayoutId-[<_ScaffoldSlot.body>] ← I/flutter ( 5428): CustomMultiChildLayout ← AnimatedBuilder ← DefaultTextStyle ← AnimatedDefaultTextStyle ← I/flutter ( 5428): _InkFeatures-[GlobalKey#e5774 ink renderer] ← NotificationListener<LayoutChangedNotification> ← ⋯ I/flutter ( 5428): parentData: offset=Offset(30.0, 65.0); flex=null; fit=null (can use size) I/flutter ( 5428): constraints: BoxConstraints(0.0<=w<=360.0, 0.0<=h<=Infinity) I/flutter ( 5428): size: Size(300.0, 300.0) I/flutter ( 5428): This RenderObject has no descendants. I/flutter ( 5428): ════════════════════════════════════════════════════════════════════════════════════════════════════ I/flutter ( 5428): Another exception was thrown: Bad state: Missing values for keyframe. D/ViewRootImpl( 5428): ViewPostImeInputStage processPointer 0 D/ViewRootImpl( 5428): ViewPostImeInputStage processPointer 1 D/ViewRootImpl( 5428): ViewPostImeInputStage processPointer 0 D/ViewRootImpl( 5428): ViewPostImeInputStage processPointer 1 I/flutter ( 5428): Unknown shape rp I/flutter ( 5428): Unknown shape rp I/flutter ( 5428): Another exception was thrown: Bad state: Missing values for keyframe.

Flutter doctor result: Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, v1.7.8+hotfix.4, on Microsoft Windows [Version 10.0.18362.239], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [√] Android Studio (version 3.3) [√] VS Code, 64-bit edition (version 1.36.1) [√] Connected device (1 available)

• No issues found!

What is the problem here, who can help with that? :(

praharshbhatt commented 4 years ago

Same issue here. It seems to occur in only select animations.

dnfield commented 4 years ago

I'd recommend using Flare for your Lottie animations in Flutter. This project is in bad shape and unlikely to be brought up to speed anytime soon.