Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ActorNode' is not of subtype 'FlutterPath' #185

Closed
innotechBymoen opened this issue Nov 7, 2019 · 5 comments
Closed

'ActorNode' is not of subtype 'FlutterPath' #185

innotechBymoen opened this issue Nov 7, 2019 · 5 comments
Assignees

Comments

@innotechBymoen
Copy link

I am running into issues with only one of my flare exports. The rest of them work fine, but this one keeps throwing a stack trace. I can also simply replace this animation in my code (i.e. the asset file) and the different animation works just fine, so it isn't the specific code.

Unhandled Exception: type 'ActorNode' is not a subtype of type 'FlutterPath' in type cast
E/flutter ( 5758): #0      FlutterActorShape.initializeGraphics (package:flare_flutter/flare.dart:179:40)
E/flutter ( 5758): #1      ActorArtboard.initializeGraphics (package:flare_dart/actor_artboard.dart:573:16)
E/flutter ( 5758): #2      FlareActorRenderObject._instanceArtboard (package:flare_flutter/flare_actor.dart:273:14)
E/flutter ( 5758): #3      FlareActorRenderObject.load (package:flare_flutter/flare_actor.dart:304:5)
E/flutter ( 5758): <asynchronous suspension>
E/flutter ( 5758): #4      FlareActorRenderObject.filename= (package:flare_flutter/flare_actor.dart:263:5)
E/flutter ( 5758): #5      FlareActor.createRenderObject (package:flare_flutter/flare_actor.dart:81:9)

Has anyone ran into this with newer .flr files? All of the old ones I have made work just fine with my normal workflow.

@luigi-rosso
Copy link
Contributor

Hi @innotechBymoen, sorry to hear that, it does seem like something is wrong with that file. Could you share the .flr file and a link to the file on 2dimensions.com?

@luigi-rosso luigi-rosso self-assigned this Nov 7, 2019
@innotechBymoen
Copy link
Author

@luigi-rosso
Copy link
Contributor

luigi-rosso commented Nov 7, 2019

It seems to be working for me. Which version of flare_flutter do you have defined in your pubspec.yaml? Try upgrading to the latest, flare_flutter: ^1.6.5 and see if that makes a difference!

@innotechBymoen
Copy link
Author

Ah of course. That has worked, Thanks!

@luigi-rosso
Copy link
Contributor

Great, glad it was so easy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants