1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Bump deps and min SDKs, move web apps to new bootstrapping logic (#2292)

Also removed the web measurement experiment from the material 3 demo
This commit is contained in:
Kevin Moore
2024-05-14 22:33:41 -07:00
committed by GitHub
parent 4776ad597b
commit a858f4701e
83 changed files with 90 additions and 556 deletions

View File

@@ -32,28 +32,8 @@
<title>game_template</title>
<link rel="manifest" href="manifest.json">
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>
<body>
<script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
<script src="flutter_bootstrap.js" async></script>
</body>
</html>