flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

[Enhancement proposal]: Add wasm support

Open MominRaza opened this issue 10 months ago • 2 comments

Please check the following before submitting a new issue.

Please select affected platform(s)

  • [ ] Android
  • [ ] iOS
  • [ ] Windows
  • [x] Web

Proposal

web plugin is using dart:html which is not compatible with WASM, migrate to package:web.

Context: The unavailable library 'dart:html' is imported through these packages: web_plugin_registrant.dart => package:permission_handler_html => dart:html

Pitch

Flutter doc: https://docs.flutter.dev/platform-integration/web/wasm

MominRaza avatar Apr 05 '24 17:04 MominRaza

Would be great! Also since wasm compilation as now landed in stable.

Target dart2wasm failed: ProcessException: Process exited abnormally with exit code 64:
Context: The unavailable library 'dart:html' is imported through these packages:

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

rokk4 avatar Jun 03 '24 10:06 rokk4

@mvanbeusekom What's the status, there is also a PR linked please review it.

MominRaza avatar Jun 10 '24 09:06 MominRaza