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

@@ -4,7 +4,7 @@ description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ^3.3.1
sdk: ^3.4.0-0
dependencies:
flutter:

View File

@@ -34,29 +34,8 @@
<!-- Google Maps: https://pub.dev/packages/google_maps_flutter_web -->
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
<script>
// The value below is injected by flutter build, do not touch.
const 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>