2d-inc/Flare-Flutter

Incompatibility with Dart 2.1

scalybur opened this issue · 10 comments

Failed to get the Flare dependencies because they do not run with Dart 2.1

Same here

Weird to see this happening, coz it was just announced yesterday.

c16a commented

@luigi-rosso, any idea why this happens?

I have the same issue importing "flare:" as a dependency.
But this Youtube video shows that it works if you download the flare lib folder from github and add it locally to your project. (As a temporary solution at least)
https://youtu.be/ve0r4B1D-S0

c16a commented

Yeah, even the example project on the repo does the same - it doesn't import flare from pub. True, it's a work around, but gets messy once you need to put your project on a CI system.

Hope the guys fix it soon.

Sorry everyone, we’re still traveling back from London for the next few days so we’re not quite as responsive as we usually are. I will fix this issue tonight, however. Will write back later. Thanks for the excitement in trying this out so quickly.

Sent with GitHawk

c16a commented

@luigi-rosso No issues mate. You’ve done a great job at Flutter Live to be honest. Bonus tolerance for you guys until you fix this.

Looking forward to start using Flare and Nima.

I think the problem is that everyone is trying to use the "flare" dependency from Dart Pub. This is a bug in our readme. In the excitement we actually forgot to publish a package. We've been referencing the Flare library as a submodule and adding the dependency via a path reference to the your pubspec.yaml. I'm publishing a package now and updating the documentation to reflect the correct package name (unfortunately flare is already in use). More updates soon!

flare_flutter has been published and the examples here have been updated accordingly. We'll be making a few other examples and tutorials public in the next week that'll show how to fully use this library.

Closing this, feel free to re-open if you run into any problems.