dnfield / vector_graphics

BSD 3-Clause "New" or "Revised" License
90 stars 46 forks source link

Fix wasm compilation using `dart.library.js_interop` #247

Closed nohli closed 2 months ago

nohli commented 3 months ago

Fixes https://github.com/dnfield/vector_graphics/issues/244

You can try this PR with using this in your pubspec.yaml:

dependency_overrides:
  vector_graphics_compiler:
    git:
      url: https://github.com/nohli/vector_graphics
      path: packages/vector_graphics_compiler
      ref: js_interop

I've created two PRs. Both work for me when using https://pub.dev/packages/flutter_svg.

pepealonso95 commented 2 months ago

works for me!

nohli commented 2 months ago

This is fixed in the latest Flutter stable release 3.22.3.