flutter_image_compress icon indicating copy to clipboard operation
flutter_image_compress copied to clipboard

Migration to js_interop for WASM Compatibility

Open MominRaza opened this issue 1 year ago • 4 comments

Migrate web plugin from the js package to js_interop and migrate dart:html to package:web.

MominRaza avatar Apr 05 '24 16:04 MominRaza

I already add pull request here #306

myxzlpltk avatar May 23 '24 16:05 myxzlpltk

Thanks In your pr add "fixes #297"

MominRaza avatar May 23 '24 18:05 MominRaza

Is there an ETA?

WASM build still fails with:

Target dart2wasm failed: ProcessException: Process exited abnormally with exit
code 64:
../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_image_compress_web-0.1.4+1/lib/src/pica.dart:5:8: Error: Dart library 'dart:html' is not available on this  
platform.
import 'dart:html';
       ^
Context: The unavailable library 'dart:html' is imported through these
packages:

    web_plugin_registrant.dart => package:flutter_image_compress_web =>        
    dart:html

xErik avatar Aug 29 '24 05:08 xErik