Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to package:web for Wasm compatibility #1915

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnpryan
Copy link

This migrates from dart:html to package:web for Wasm compatibility

@pichillilorenzo
Copy link
Owner

web package seems to be highly experimental currently.
Also, using that package would increase the minimum Dart SDK to ^3.2.0.
Probably, the best way to support it would be to create a new implementation package for web wasm instead of updating the current one.

@The-RootCause
Copy link

WASM is getting stable soon. Many packages are now compatible with Wasm.
@pichillilorenzo any plans to make it compatible with WASM ?
Thank you

@The-RootCause
Copy link

@johnpryan
Your version is still not fully wasm compatible,

../../.pub-cache/hosted/pub.dev/flutter_inappwebview_web-1.0.8/lib/web/in_app_web_view_web_element.dart:7:1: Error: JS interop library 'dart:js' can't be imported when compiling to Wasm.
Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.
import 'dart:js' as js;
^
../../.pub-cache/hosted/pub.dev/flutter_inappwebview_web-1.0.8/lib/web/platform_util.dart:5:1: Error: JS interop library 'dart:js' can't be imported when compiling to Wasm.
Try using 'dart:js_interop' or 'dart:js_interop_unsafe' instead.
import 'dart:js' as js;
^

Anyway you can migrate the js to js_interop ?
Thank you

@p-mazhnik
Copy link

@The-RootCause I created a PR with migration to js_interop: #2067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants