flutter_image_compress icon indicating copy to clipboard operation
flutter_image_compress copied to clipboard

Migrate js interop fixes #297

Open myxzlpltk opened this issue 1 year ago • 5 comments

Now this package will support wasm 🥳🥳🥳

myxzlpltk avatar May 23 '24 16:05 myxzlpltk

is there anything to improve? @fluttercandies

myxzlpltk avatar Jun 09 '24 13:06 myxzlpltk

@CaiJingLong Please review it

MominRaza avatar Jun 10 '24 09:06 MominRaza

can you merge it and deploy on pub? @MominRaza @scascacha @mono0926 @bes89

hasanm08 avatar Jun 11 '24 09:06 hasanm08

@CaiJingLong @AlexV525 Please review this

MominRaza avatar Jun 28 '24 17:06 MominRaza

For the meantime, you can dependency override flutter_image_compress_web:

  flutter_image_compress_web:
    git:
      url: https://github.com/myxzlpltk/flutter_image_compress.git
      path: packages/flutter_image_compress_web

flawnn avatar Jul 01 '24 14:07 flawnn

For the meantime, you can dependency override flutter_image_compress_web:

  flutter_image_compress_web:
    git:
      url: https://github.com/myxzlpltk/flutter_image_compress.git
      path: packages/flutter_image_compress_web

This works fine, on web only, but then if you need image compress on other platforms in addition to running on web, it doesn't get the job done, because the main flutter image compress package still depends on flutter image compress web from pub.dev, which isn't wasm compatible yet. I managed to fork the repo and made it web compatible, and removing the hosted dependencies as well, and having all of the dependencies local to the package. Here's the url https://github.com/alainjr10/flutter_image_compress.git

alainjr10 avatar Nov 25 '24 09:11 alainjr10