Refactor code structure for improved readability and maintainability
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Binary file not shown.
@@ -0,0 +1 @@
|
||||
"DQA="
|
||||
@@ -0,0 +1 @@
|
||||
[{"family":"MaterialIcons","fonts":[{"asset":"fonts/MaterialIcons-Regular.otf"}]}]
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -37,6 +37,6 @@ _flutter.buildConfig = {"engineRevision":"59aa584fdf100e6c78c785d8a5b565d1de4b48
|
||||
|
||||
_flutter.loader.load({
|
||||
serviceWorkerSettings: {
|
||||
serviceWorkerVersion: "3071527921" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
||||
serviceWorkerVersion: "1494425110" /* Flutter's service worker is deprecated and will be removed in a future Flutter release. */
|
||||
}
|
||||
});
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
'use strict';
|
||||
|
||||
self.addEventListener('install', () => {
|
||||
self.skipWaiting();
|
||||
});
|
||||
|
||||
self.addEventListener('activate', (event) => {
|
||||
event.waitUntil(
|
||||
(async () => {
|
||||
try {
|
||||
await self.registration.unregister();
|
||||
} catch (e) {
|
||||
console.warn('Failed to unregister the service worker:', e);
|
||||
}
|
||||
|
||||
try {
|
||||
const clients = await self.clients.matchAll({
|
||||
type: 'window',
|
||||
});
|
||||
// Reload clients to ensure they are not using the old service worker.
|
||||
clients.forEach((client) => {
|
||||
if (client.url && 'navigate' in client) {
|
||||
client.navigate(client.url);
|
||||
}
|
||||
});
|
||||
} catch (e) {
|
||||
console.warn('Failed to navigate some service worker clients:', e);
|
||||
}
|
||||
})()
|
||||
);
|
||||
});
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"app_name":"recipe_flutter","version":"1.0.0","build_number":"1","package_name":"recipe_flutter"}
|
||||
Reference in New Issue
Block a user