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 @@ publish_to: 'none'
version: 0.1.0
environment:
sdk: '>=3.2.3 <4.0.0'
sdk: ^3.4.0-0
dependencies:
async: ^2.11.0
@@ -18,7 +18,7 @@ dependencies:
flutter_markdown: ^0.6.20
flutter_svg: ^2.0.9
google_fonts: 6.1.0
google_generative_ai: ^0.2.0
google_generative_ai: ^0.4.0
image_picker: ^1.0.7
material_symbols_icons: ^4.2719.1
path: ^1.9.0

View File

@@ -31,29 +31,8 @@
<title>gemini_io_talk</title>
<link rel="manifest" href="manifest.json">
<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>