flet-web 0.25.0.dev3647__py3-none-any.whl → 0.25.0.dev3662__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of flet-web might be problematic. Click here for more details.

@@ -5,14 +5,13 @@ import tempfile
5
5
  from pathlib import Path
6
6
  from typing import Optional, Tuple
7
7
 
8
+ import flet_web.fastapi as flet_fastapi
8
9
  from fastapi.staticfiles import StaticFiles
9
10
  from flet.core.types import WebRenderer
10
11
  from flet.utils import Once, get_bool_env_var
11
- from starlette.types import Receive, Scope, Send
12
-
13
- import flet_web.fastapi as flet_fastapi
14
12
  from flet_web import get_package_web_dir, patch_index_html, patch_manifest_json
15
13
  from flet_web.fastapi.flet_app_manager import app_manager
14
+ from starlette.types import Receive, Scope, Send
16
15
 
17
16
  logger = logging.getLogger(flet_fastapi.__name__)
18
17
 
flet_web/patch_index.py CHANGED
@@ -86,6 +86,8 @@ def patch_manifest_json(
86
86
  app_name: Optional[str] = None,
87
87
  app_short_name: Optional[str] = None,
88
88
  app_description: Optional[str] = None,
89
+ background_color: Optional[str] = None,
90
+ theme_color: Optional[str] = None,
89
91
  ):
90
92
  with open(manifest_path, "r") as f:
91
93
  manifest = json.loads(f.read())
@@ -100,5 +102,11 @@ def patch_manifest_json(
100
102
  if app_description:
101
103
  manifest["description"] = app_description
102
104
 
105
+ if background_color:
106
+ manifest["background_color"] = background_color
107
+
108
+ if theme_color:
109
+ manifest["theme_color"] = theme_color
110
+
103
111
  with open(manifest_path, "w") as f:
104
112
  f.write(json.dumps(manifest, indent=2))
flet_web/version.py CHANGED
@@ -1,5 +1 @@
1
- """Provide the current Flet version."""
2
-
3
- import flet.version
4
-
5
- version = flet.version.version
1
+ version = "0.25.0.dev3662"
@@ -15,7 +15,7 @@ _flutter.loader.load({
15
15
  renderer: webRenderer
16
16
  },
17
17
  serviceWorkerSettings: {
18
- serviceWorkerVersion: "476494424",
18
+ serviceWorkerVersion: "1266665557",
19
19
  },
20
20
  onEntrypointLoaded: async function (engineInitializer) {
21
21
  loading.classList.add('main_done');
@@ -3,8 +3,8 @@ const MANIFEST = 'flutter-app-manifest';
3
3
  const TEMP = 'flutter-temp-cache';
4
4
  const CACHE_NAME = 'flutter-app-cache';
5
5
 
6
- const RESOURCES = {"main.dart.js": "b79d2eb4827089efe8f5fc33554b4a24",
7
- "manifest.json": "7909dae66a9203092dc86b5a6162e79c",
6
+ const RESOURCES = {"main.dart.js": "2fa4ce2cd913aacd9abc0803d9bbfba7",
7
+ "manifest.json": "58765f937ba0d0c40a3a714c5c1adb87",
8
8
  "python-worker.js": "62a4865b3d41771b39660076485879be",
9
9
  "canvaskit/skwasm.wasm": "9f0c0c02b82a910d12ce0543ec130e60",
10
10
  "canvaskit/chromium/canvaskit.js.symbols": "a012ed99ccba193cf96bb2643003f6fc",
@@ -16,7 +16,7 @@ const RESOURCES = {"main.dart.js": "b79d2eb4827089efe8f5fc33554b4a24",
16
16
  "canvaskit/skwasm.js.symbols": "262f4827a1317abb59d71d6c587a93e2",
17
17
  "canvaskit/canvaskit.js": "66177750aff65a66cb07bb44b8c6422b",
18
18
  "canvaskit/canvaskit.wasm": "1f237a213d7370cf95f443d896176460",
19
- "flutter_bootstrap.js": "f14e78e33401b64be320c768b43904f2",
19
+ "flutter_bootstrap.js": "6bdf4ad1812033bfaee64c6179e1d446",
20
20
  "favicon.png": "302ac04c14db027d016d1fe74c6a80a0",
21
21
  "flutter.js": "f393d3c16b631f36852323de8e583132",
22
22
  "index.html": "9b60787b64ca572171a5b4effdbca418",