dnfield / lottie-flutter

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

The getter 'initialPoint' was called on null. #32

Open v0l opened 5 years ago

v0l commented 5 years ago

https://lottiefiles.com/6734-404-error-glitch-2 lottie_flutter: 0.2.0

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

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[√] Android Studio (version 3.4)
[√] VS Code (version 1.36.1)
[√] Connected device (1 available)

• No issues found!

Stack

I/flutter (30013): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (30013): The following NoSuchMethodError was thrown building Container(center, padding: EdgeInsets(0.0, 20.0,
I/flutter (30013): 0.0, 20.0), bg: BoxDecoration(color: Color(0xff0096db))):
I/flutter (30013): The getter 'initialPoint' was called on null.
I/flutter (30013): Receiver: null
I/flutter (30013): Tried calling: initialPoint
I/flutter (30013):
I/flutter (30013): When the exception was thrown, this was the stack:
I/flutter (30013): #0      Object.noSuchMethod  (dart:core-patch/object_patch.dart:50:5)
I/flutter (30013): #1      PathParser.parseFromShape 
package:lottie_flutter/…/parsers/parsers.dart:286
I/flutter (30013): #2      AnimatableShapeValue.createAnimation 
package:lottie_flutter/src/animatables.dart:167
I/flutter (30013): #3      new MaskKeyframeAnimation 
package:lottie_flutter/src/animations.dart:277
I/flutter (30013): #4      new BaseLayer 
package:lottie_flutter/…/drawing/drawing_layers.dart:59
I/flutter (30013): #5      new CompositionLayer 
package:lottie_flutter/…/drawing/drawing_layers.dart:496
I/flutter (30013): #6      layerForModel 
package:lottie_flutter/…/drawing/drawing_layers.dart:24
I/flutter (30013): #7      new CompositionLayer 
package:lottie_flutter/…/drawing/drawing_layers.dart:504
I/flutter (30013): #8      _LottieState.setScaleAndCompositionLayer 
package:lottie_flutter/src/lottie.dart:91
I/flutter (30013): #9      _LottieState.initState 
package:lottie_flutter/src/lottie.dart:43
bdezso commented 5 years ago

same problem here

bdezso commented 5 years ago

I tried with other json files. It works perfectly with the example assets. It can't be parse certain types of animation, like: https://lottiefiles.com/5707-error

praharshbhatt commented 5 years ago

Same issue here! Is there any solution?