flutter-permission-handler
flutter-permission-handler copied to clipboard
[Enhancement proposal]: Add wasm support
Please check the following before submitting a new issue.
- [X] I have searched the existing issues.
- [X] I have carefully read the documentation and verified I have added the required platform specific configuration.
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
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
@mvanbeusekom What's the status, there is also a PR linked please review it.