Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

In compatible with current flutter_svg version #24

Open
greatpie opened this issue Mar 19, 2019 · 5 comments
Open

In compatible with current flutter_svg version #24

greatpie opened this issue Mar 19, 2019 · 5 comments

Comments

@greatpie
Copy link

Because every version of lottie_flutter depends on path_drawing ^0.2.1, flutter_svg ^0.12.0 is incompatible with lottie_flutter.

@dnfield
Copy link
Owner

dnfield commented Mar 19, 2019

Oof. I really should do a cleanup here. I'll try to do something quick with that today.

@dnfield
Copy link
Owner

dnfield commented Mar 20, 2019

I took a look at this but managed to break the build for it locally. If you can, try using a dependency_override and it should be fine - in the mean time I'm looking at alternative approaches.

@GianlucaCesari
Copy link

Any news on this? I too encountered the same problem and not knowing how dependency_override works i had to bump down flutter_svg to 0.5.0 , the problem is all my svg are now broken 😅

@dnfield can you maybe post a snippet to let us know how we can use dependency_override in this case?

@dnfield
Copy link
Owner

dnfield commented Apr 25, 2019

Something like this should work:

environment:
  sdk: ">=2.1.0 <3.0.0"

dependencies:
  flutter_svg: ^0.12.0
  lottie_flutter: any
  flutter:
    sdk: flutter

dependency_overrides:
  path_drawing: ^0.4.0

@GianlucaCesari
Copy link

Thank you @dnfield :)

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

No branches or pull requests

3 participants