feat! js_interop improvements

This commit is contained in:
Nick Fisher
2025-05-07 17:06:38 +08:00
parent 63e2dcd0ca
commit 2f16908992
159 changed files with 12989 additions and 8377 deletions

View File

@@ -2,19 +2,6 @@
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="$FLUTTER_BASE_HREF">
<meta charset="UTF-8">
@@ -37,12 +24,17 @@
const serviceWorkerVersion = null;
</script>
<script src="flutter.js" defer></script>
<script type="text/javascript" src="./thermion_dart.js"></script>
<script type="module">
try {
window.thermion_dart = await thermion_dart();
} catch(err) {
console.error(err);
}
</script>
</head>
<body>
<canvas id="canvas"></canvas>
<div id="flutter-container"></div>
<script type="text/javascript">
window.addEventListener('load', function (ev) {

View File

@@ -1 +1 @@
../../../assets/thermion_dart.js
../../../../thermion_dart/native/web/build/build/out/thermion_dart.js

View File

@@ -1 +1 @@
../../../assets/thermion_dart.wasm
../../../../thermion_dart/native/web/build/build/out/thermion_dart.wasm