domesticmouse 2 years ago
parent 27318172a0
commit 8cd57d4f19

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -7,8 +7,8 @@ const RESOURCES = {
"canvaskit/profiling/canvaskit.wasm": "95e736ab31147d1b2c7b25f11d4c32cd",
"canvaskit/canvaskit.js": "c2b4e5f3d7a3d82aed024e7249a78487",
"canvaskit/canvaskit.wasm": "4b83d89d9fecbea8ca46f2f760c5a9ba",
"index.html": "5bf3865baee6803c30caf653dd2769db",
"/": "5bf3865baee6803c30caf653dd2769db",
"index.html": "4be5bff6da45fbb384ad04d0d711f1f7",
"/": "4be5bff6da45fbb384ad04d0d711f1f7",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"main.dart.js": "80d97cf3073b21a73fa955bcf5ba1968",
"manifest.json": "68625bab86590a7ebe9e384ad0eedabd",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '1764234231';
var serviceWorkerVersion = '862640599';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

@ -7,14 +7,16 @@ const RESOURCES = {
"canvaskit/profiling/canvaskit.wasm": "95e736ab31147d1b2c7b25f11d4c32cd",
"canvaskit/canvaskit.js": "c2b4e5f3d7a3d82aed024e7249a78487",
"canvaskit/canvaskit.wasm": "4b83d89d9fecbea8ca46f2f760c5a9ba",
"index.html": "943cd479c5b02ca6bd9755e2ddd924c0",
"/": "943cd479c5b02ca6bd9755e2ddd924c0",
"index.html": "bfd1083eaee66444edee0df135ed23d8",
"/": "bfd1083eaee66444edee0df135ed23d8",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"main.dart.js": "74b10727c20057ec052faf00e7680880",
"manifest.json": "4d05609ff620f8861ca20119a9dc92fd",
"manifest.json": "abaeea879f3279d2833ea9b6d03fcc4f",
"version.json": "08c8c94a1f10fbdfa4e8389d31bd1ed8",
"flutter.js": "eb2682e33f25cd8f1fc59011497c35f8",
"icons/Icon-maskable-512.png": "301a7604d45b3e739efc881eb04896ea",
"icons/Icon-512.png": "96e752610906ba2a93c65f8abe1645f1",
"icons/Icon-maskable-192.png": "c457ef57daa1d16f64b27b786ec2ea3c",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
"assets/FontManifest.json": "dc3d03800ccca4601324923c0b1d6d57",
"assets/NOTICES": "ec67b4c5d6a09db625e93e25c3739250",

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

@ -1,6 +1,5 @@
<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
@ -11,12 +10,15 @@
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="/samples/web/form_app/">
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A sample demonstrating different types of forms and best practices">
<meta name="description" content="A new Flutter project.">
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
@ -24,78 +26,33 @@
<meta name="apple-mobile-web-app-title" content="form_app">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png"/>
<title>form_app</title>
<link rel="manifest" href="manifest.json">
</head>
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '2953760919';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>
<body>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
var serviceWorkerVersion = '1731223705';
var scriptLoaded = false;
function loadMainDartJs() {
if (scriptLoaded) {
return;
}
scriptLoaded = true;
var scriptTag = document.createElement('script');
scriptTag.src = 'main.dart.js';
scriptTag.type = 'application/javascript';
document.body.append(scriptTag);
}
if ('serviceWorker' in navigator) {
// Service workers are supported. Use them.
window.addEventListener('load', function () {
// Wait for registration to finish before dropping the <script> tag.
// Otherwise, the browser will load the script multiple times,
// potentially different versions.
var serviceWorkerUrl = 'flutter_service_worker.js?v=' + serviceWorkerVersion;
navigator.serviceWorker.register(serviceWorkerUrl)
.then((reg) => {
function waitForActivation(serviceWorker) {
serviceWorker.addEventListener('statechange', () => {
if (serviceWorker.state == 'activated') {
console.log('Installed new service worker.');
loadMainDartJs();
}
});
}
if (!reg.active && (reg.installing || reg.waiting)) {
// No active web worker and we have installed or are installing
// one for the first time. Simply wait for it to activate.
waitForActivation(reg.installing ?? reg.waiting);
} else if (!reg.active.scriptURL.endsWith(serviceWorkerVersion)) {
// When the app updates the serviceWorkerVersion changes, so we
// need to ask the service worker to update.
console.log('New service worker available.');
reg.update();
waitForActivation(reg.installing);
} else {
// Existing service worker is still good.
console.log('Loading app from service worker.');
loadMainDartJs();
}
});
// If service worker doesn't succeed in a reasonable amount of time,
// fallback to plaint <script> tag.
setTimeout(() => {
if (!scriptLoaded) {
console.warn(
'Failed to load app from service worker. Falling back to plain <script> tag.',
);
loadMainDartJs();
}
}, 4000);
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
}
}).then(function(engineInitializer) {
return engineInitializer.initializeEngine();
}).then(function(appRunner) {
return appRunner.runApp();
});
} else {
// Service workers not supported. Just drop the <script> tag.
loadMainDartJs();
}
});
</script>
</body>
</html>
</html>

@ -18,6 +18,18 @@
"src": "icons/Icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}

@ -7,8 +7,8 @@ const RESOURCES = {
"canvaskit/profiling/canvaskit.wasm": "95e736ab31147d1b2c7b25f11d4c32cd",
"canvaskit/canvaskit.js": "c2b4e5f3d7a3d82aed024e7249a78487",
"canvaskit/canvaskit.wasm": "4b83d89d9fecbea8ca46f2f760c5a9ba",
"index.html": "8930cf1a02c34d3bb557b41259f7227c",
"/": "8930cf1a02c34d3bb557b41259f7227c",
"index.html": "11013ee5ef03af50fa2fb8784c850fe3",
"/": "11013ee5ef03af50fa2fb8784c850fe3",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"main.dart.js": "6d3ca9e385cde0a38e8c47fc444d38b2",
"manifest.json": "d3e8be9819697c196251e6e977053336",

@ -37,7 +37,7 @@
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
var serviceWorkerVersion = '1193595954';
var serviceWorkerVersion = '549368125';
var scriptLoaded = false;
function loadMainDartJs() {
if (scriptLoaded) {

@ -7,8 +7,8 @@ const RESOURCES = {
"canvaskit/profiling/canvaskit.wasm": "95e736ab31147d1b2c7b25f11d4c32cd",
"canvaskit/canvaskit.js": "c2b4e5f3d7a3d82aed024e7249a78487",
"canvaskit/canvaskit.wasm": "4b83d89d9fecbea8ca46f2f760c5a9ba",
"index.html": "4173e81178e339a892910758c4582c25",
"/": "4173e81178e339a892910758c4582c25",
"index.html": "5aa10580432e06991bfb35945af25409",
"/": "5aa10580432e06991bfb35945af25409",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"main.dart.js": "498d16ffdfe3dc8aa7e28177586f55f7",
"manifest.json": "05f725318f41bf1601ead9ffa9355535",

@ -37,7 +37,7 @@
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
var serviceWorkerVersion = '3155455194';
var serviceWorkerVersion = '1969000235';
var scriptLoaded = false;
function loadMainDartJs() {
if (scriptLoaded) {

@ -7,8 +7,8 @@ const RESOURCES = {
"canvaskit/profiling/canvaskit.wasm": "95e736ab31147d1b2c7b25f11d4c32cd",
"canvaskit/canvaskit.js": "c2b4e5f3d7a3d82aed024e7249a78487",
"canvaskit/canvaskit.wasm": "4b83d89d9fecbea8ca46f2f760c5a9ba",
"index.html": "2a7d68a0191e70b6387875b8e057ef6e",
"/": "2a7d68a0191e70b6387875b8e057ef6e",
"index.html": "ae6cb4fbea36e06e9a46c3c37e6afb36",
"/": "ae6cb4fbea36e06e9a46c3c37e6afb36",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"main.dart.js": "719b52efdd33c349388f07e8f0c9bc16",
"manifest.json": "b3e6ffc626a7ddc3a2a95f62ee423a43",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '3309308047';
var serviceWorkerVersion = '3789668821';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

@ -7,8 +7,8 @@ const RESOURCES = {
"canvaskit/profiling/canvaskit.wasm": "95e736ab31147d1b2c7b25f11d4c32cd",
"canvaskit/canvaskit.js": "c2b4e5f3d7a3d82aed024e7249a78487",
"canvaskit/canvaskit.wasm": "4b83d89d9fecbea8ca46f2f760c5a9ba",
"index.html": "0fafe3395ff0545e88a5aa2e30df1e28",
"/": "0fafe3395ff0545e88a5aa2e30df1e28",
"index.html": "434e72025eeb9bf45029b98c81222fba",
"/": "434e72025eeb9bf45029b98c81222fba",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"main.dart.js": "ec5104c65c0f7b2e40351141dd221e1f",
"manifest.json": "470be0990b1a9c5a9011c08ba3d78e79",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '3859097645';
var serviceWorkerVersion = '1276069035';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

@ -7,8 +7,8 @@ const RESOURCES = {
"canvaskit/profiling/canvaskit.wasm": "95e736ab31147d1b2c7b25f11d4c32cd",
"canvaskit/canvaskit.js": "c2b4e5f3d7a3d82aed024e7249a78487",
"canvaskit/canvaskit.wasm": "4b83d89d9fecbea8ca46f2f760c5a9ba",
"index.html": "55785b67d67b9deb7b5cd2365cebbb6c",
"/": "55785b67d67b9deb7b5cd2365cebbb6c",
"index.html": "f8fe7668936b3df07c85ef36d1153c0f",
"/": "f8fe7668936b3df07c85ef36d1153c0f",
"favicon.png": "5dcef449791fa27946b3d35ad8803796",
"main.dart.js": "2abe02a889f06c62459cc57a6658e9c1",
"manifest.json": "fcc4cffd0f45ba41f31bdd5e05ca1ded",

@ -34,7 +34,7 @@
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = '694575706';
var serviceWorkerVersion = '237103369';
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

Loading…
Cancel
Save