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

Using dart.library.js_interop instead of dart.library.html #2103

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

h1376h
Copy link
Contributor

@h1376h h1376h commented Aug 12, 2024

Description

Since dart:html is not supported when compiling to Wasm, the correct alternative now is to use dart.library.js_interop to differentiate between native and web

Source:
https://dart.dev/interop/js-interop/package-web

Related Issues

Type of Change

  • New feature: Adds new functionality without breaking existing features.

Suggestions

Since dart:html is not supported when compiling to Wasm, the correct alternative now is to use dart.library.js_interop to differentiate between native and web

Source:
https://dart.dev/interop/js-interop/package-web
@h1376h h1376h changed the title Add Wasm support Using dart.library.js_interop instead of dart.library.html Aug 12, 2024
@singerdmx singerdmx merged commit 9c79db8 into singerdmx:master Aug 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants