flet 0.24.0.dev3203__tar.gz → 0.24.0.dev3216__tar.gz
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.
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/PKG-INFO +2 -2
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/pyproject.toml +2 -2
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/cli/commands/build.py +79 -29
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/flutter_bootstrap.js +1 -1
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/flutter_service_worker.js +3 -3
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/index.html +1 -1
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/README.md +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/__init__.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/__pyinstaller/__init__.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/__pyinstaller/config.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/__pyinstaller/hook-flet.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/__pyinstaller/macos_utils.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/__pyinstaller/rthooks/pyi_rth_localhost_fletd.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/__pyinstaller/rthooks.dat +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/__pyinstaller/utils.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/__pyinstaller/win_utils.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/auth/__init__.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/auth/providers/__init__.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/canvas/__init__.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/cli/cli.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/cli/commands/base.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/cli/commands/create.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/cli/commands/options.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/cli/commands/pack.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/cli/commands/publish.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/cli/commands/run.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/README.md +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/__init__.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/app.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/flet_app.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/flet_app_manager.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/flet_fastapi.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/flet_oauth.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/flet_static_files.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/flet_upload.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/oauth_state.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/fastapi/serve_fastapi_web_app.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/map/__init__.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/matplotlib_chart.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/plotly_chart.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/security/__init__.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/utils/__init__.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/version.py +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/.last_build_id +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/AssetManifest.bin +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/AssetManifest.bin.json +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/AssetManifest.json +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/FontManifest.json +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/NOTICES +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/fonts/MaterialIcons-Regular.otf +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/packages/cupertino_icons/assets/CupertinoIcons.ttf +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/packages/media_kit/assets/web/hls1.4.10.js +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/packages/record_web/assets/js/record.worklet.js +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/packages/wakelock_plus/assets/no_sleep.js +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/packages/window_manager/images/ic_chrome_close.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/packages/window_manager/images/ic_chrome_maximize.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/packages/window_manager/images/ic_chrome_minimize.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/packages/window_manager/images/ic_chrome_unmaximize.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/shaders/ink_sparkle.frag +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/favicon.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/flutter.js +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/icons/apple-touch-icon-192.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/icons/icon-192.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/icons/icon-512.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/icons/icon-maskable-192.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/icons/icon-maskable-512.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/icons/loading-animation.png +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/main.dart.js +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/manifest.json +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/python-worker.js +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/python.js +0 -0
- {flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/version.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: flet
|
|
3
|
-
Version: 0.24.0.
|
|
3
|
+
Version: 0.24.0.dev3216
|
|
4
4
|
Summary: Flet for Python - easily build interactive multi-platform apps in Python
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: Appveyor Systems Inc.
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Requires-Dist: cookiecutter (>=2.6.0,<3.0.0)
|
|
17
17
|
Requires-Dist: fastapi (>=0,<1)
|
|
18
|
-
Requires-Dist: flet-runtime (==0.24.0.
|
|
18
|
+
Requires-Dist: flet-runtime (==0.24.0.dev3216)
|
|
19
19
|
Requires-Dist: packaging (>=23.1,<24.0)
|
|
20
20
|
Requires-Dist: qrcode (>=7.4.2,<8.0.0)
|
|
21
21
|
Requires-Dist: uvicorn[standard] (>=0,<1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "flet"
|
|
3
|
-
version = "0.24.0.
|
|
3
|
+
version = "0.24.0.dev3216"
|
|
4
4
|
description = "Flet for Python - easily build interactive multi-platform apps in Python"
|
|
5
5
|
authors = ["Appveyor Systems Inc. <hello@flet.dev>"]
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -17,7 +17,7 @@ documentation = "https://flet.dev/docs"
|
|
|
17
17
|
|
|
18
18
|
[tool.poetry.dependencies]
|
|
19
19
|
python = "^3.8"
|
|
20
|
-
flet-runtime = "0.24.0.
|
|
20
|
+
flet-runtime = "0.24.0.dev3216"
|
|
21
21
|
watchdog = "^4.0.0"
|
|
22
22
|
packaging = "^23.1"
|
|
23
23
|
qrcode = "^7.4.2"
|
|
@@ -10,7 +10,7 @@ import sys
|
|
|
10
10
|
import tempfile
|
|
11
11
|
import urllib.request
|
|
12
12
|
from pathlib import Path
|
|
13
|
-
from typing import Optional
|
|
13
|
+
from typing import Optional, Union
|
|
14
14
|
|
|
15
15
|
import yaml
|
|
16
16
|
from packaging import version
|
|
@@ -21,7 +21,12 @@ import flet.version
|
|
|
21
21
|
from flet.cli.commands.base import BaseCommand
|
|
22
22
|
from flet.version import update_version
|
|
23
23
|
from flet_core.utils import random_string, slugify
|
|
24
|
-
from flet_runtime.utils import
|
|
24
|
+
from flet_runtime.utils import (
|
|
25
|
+
calculate_file_hash,
|
|
26
|
+
copy_tree,
|
|
27
|
+
is_windows,
|
|
28
|
+
get_bool_env_var,
|
|
29
|
+
)
|
|
25
30
|
|
|
26
31
|
if is_windows():
|
|
27
32
|
from ctypes import windll
|
|
@@ -42,6 +47,11 @@ class Command(BaseCommand):
|
|
|
42
47
|
def __init__(self, parser: argparse.ArgumentParser) -> None:
|
|
43
48
|
super().__init__(parser)
|
|
44
49
|
|
|
50
|
+
self.emojis = {}
|
|
51
|
+
self.dart_exe = None
|
|
52
|
+
self.verbose = None
|
|
53
|
+
self.flutter_dir = None
|
|
54
|
+
self.flutter_exe = None
|
|
45
55
|
self.platforms = {
|
|
46
56
|
"windows": {
|
|
47
57
|
"build_command": "windows",
|
|
@@ -302,10 +312,25 @@ class Command(BaseCommand):
|
|
|
302
312
|
default=False,
|
|
303
313
|
help="displays the build platform matrix in a table, then exits",
|
|
304
314
|
)
|
|
315
|
+
parser.add_argument(
|
|
316
|
+
"--no-rich-output",
|
|
317
|
+
action="store_true",
|
|
318
|
+
default=False,
|
|
319
|
+
help="disables rich output and uses plain text instead",
|
|
320
|
+
)
|
|
305
321
|
|
|
306
322
|
def handle(self, options: argparse.Namespace) -> None:
|
|
307
323
|
self.verbose = options.verbose
|
|
308
324
|
self.flutter_dir = None
|
|
325
|
+
no_rich_output = options.no_rich_output or get_bool_env_var(
|
|
326
|
+
"FLET_NO_RICH_OUTPUT"
|
|
327
|
+
)
|
|
328
|
+
self.emojis = {
|
|
329
|
+
"checkmark": "[green]OK[/]" if no_rich_output else "✅",
|
|
330
|
+
"loading": "" if no_rich_output else "⏳",
|
|
331
|
+
"success": "" if no_rich_output else "🥳",
|
|
332
|
+
"directory": "" if no_rich_output else "📁",
|
|
333
|
+
}
|
|
309
334
|
target_platform = options.target_platform.lower()
|
|
310
335
|
# platform check
|
|
311
336
|
current_platform = platform.system()
|
|
@@ -335,7 +360,7 @@ class Command(BaseCommand):
|
|
|
335
360
|
with console.status(
|
|
336
361
|
f"[bold blue]Initializing {target_platform} build... ",
|
|
337
362
|
spinner="bouncingBall",
|
|
338
|
-
) as status:
|
|
363
|
+
) as self.status:
|
|
339
364
|
from cookiecutter.main import cookiecutter
|
|
340
365
|
|
|
341
366
|
# get `flutter` and `dart` executables from PATH
|
|
@@ -410,7 +435,11 @@ class Command(BaseCommand):
|
|
|
410
435
|
)
|
|
411
436
|
|
|
412
437
|
if self.verbose > 0:
|
|
413
|
-
console.log(
|
|
438
|
+
console.log(
|
|
439
|
+
f"Additional Flutter dependencies: {flutter_dependencies}"
|
|
440
|
+
if flutter_dependencies
|
|
441
|
+
else "No additional Flutter dependencies!"
|
|
442
|
+
)
|
|
414
443
|
|
|
415
444
|
template_data = {
|
|
416
445
|
"out_dir": self.flutter_dir.name,
|
|
@@ -444,8 +473,8 @@ class Command(BaseCommand):
|
|
|
444
473
|
)
|
|
445
474
|
|
|
446
475
|
# create Flutter project from a template
|
|
447
|
-
status.update(
|
|
448
|
-
f"[bold blue]Creating Flutter bootstrap project from {template_url} with ref {template_ref}
|
|
476
|
+
self.status.update(
|
|
477
|
+
f"[bold blue]Creating Flutter bootstrap project from {template_url} with ref {template_ref} {self.emojis['loading']}... ",
|
|
449
478
|
)
|
|
450
479
|
try:
|
|
451
480
|
cookiecutter(
|
|
@@ -460,7 +489,7 @@ class Command(BaseCommand):
|
|
|
460
489
|
except Exception as e:
|
|
461
490
|
self.cleanup(1, f"{e}")
|
|
462
491
|
console.log(
|
|
463
|
-
f"Created Flutter bootstrap project from {template_url} with ref {template_ref}
|
|
492
|
+
f"Created Flutter bootstrap project from {template_url} with ref {template_ref} {self.emojis['checkmark']}",
|
|
464
493
|
)
|
|
465
494
|
|
|
466
495
|
# load pubspec.yaml
|
|
@@ -487,8 +516,8 @@ class Command(BaseCommand):
|
|
|
487
516
|
)
|
|
488
517
|
|
|
489
518
|
# copy icons to `flutter_dir`
|
|
490
|
-
status.update(
|
|
491
|
-
"[bold blue]Customizing app icons and splash images
|
|
519
|
+
self.status.update(
|
|
520
|
+
f"[bold blue]Customizing app icons and splash images {self.emojis['loading']}... ",
|
|
492
521
|
)
|
|
493
522
|
assets_path = python_app_path.joinpath("assets")
|
|
494
523
|
if assets_path.exists():
|
|
@@ -657,14 +686,18 @@ class Command(BaseCommand):
|
|
|
657
686
|
pubspec["flutter_native_splash"]["ios"] = not options.no_ios_splash
|
|
658
687
|
pubspec["flutter_native_splash"]["android"] = not options.no_android_splash
|
|
659
688
|
|
|
660
|
-
console.log(
|
|
689
|
+
console.log(
|
|
690
|
+
f"Customized app icons and splash images {self.emojis['checkmark']}"
|
|
691
|
+
)
|
|
661
692
|
|
|
662
693
|
# save pubspec.yaml
|
|
663
694
|
with open(pubspec_path, "w", encoding="utf8") as f:
|
|
664
695
|
yaml.dump(pubspec, f)
|
|
665
696
|
|
|
666
697
|
# generate icons
|
|
667
|
-
status.update(
|
|
698
|
+
self.status.update(
|
|
699
|
+
f"[bold blue]Generating app icons {self.emojis['loading']}... "
|
|
700
|
+
)
|
|
668
701
|
icons_result = self.run(
|
|
669
702
|
[self.dart_exe, "run", "flutter_launcher_icons"],
|
|
670
703
|
cwd=str(self.flutter_dir),
|
|
@@ -677,11 +710,11 @@ class Command(BaseCommand):
|
|
|
677
710
|
console.log(icons_result.stderr, style=error_style)
|
|
678
711
|
self.cleanup(icons_result.returncode, check_flutter_version=True)
|
|
679
712
|
|
|
680
|
-
console.log("Generated app icons
|
|
713
|
+
console.log(f"Generated app icons {self.emojis['checkmark']}")
|
|
681
714
|
# generate splash
|
|
682
715
|
if target_platform in ["web", "ipa", "apk", "aab"]:
|
|
683
|
-
status.update(
|
|
684
|
-
"[bold blue]Generating splash screens
|
|
716
|
+
self.status.update(
|
|
717
|
+
f"[bold blue]Generating splash screens {self.emojis['loading']}... ",
|
|
685
718
|
)
|
|
686
719
|
splash_result = self.run(
|
|
687
720
|
[self.dart_exe, "run", "flutter_native_splash:create"],
|
|
@@ -695,7 +728,7 @@ class Command(BaseCommand):
|
|
|
695
728
|
console.log(splash_result.stderr, style=error_style)
|
|
696
729
|
self.cleanup(splash_result.returncode, check_flutter_version=True)
|
|
697
730
|
|
|
698
|
-
console.log("Generated splash screens
|
|
731
|
+
console.log(f"Generated splash screens {self.emojis['checkmark']}")
|
|
699
732
|
|
|
700
733
|
exclude_list = ["build"]
|
|
701
734
|
|
|
@@ -703,8 +736,8 @@ class Command(BaseCommand):
|
|
|
703
736
|
exclude_list.extend(options.exclude)
|
|
704
737
|
|
|
705
738
|
# package Python app
|
|
706
|
-
status.update(
|
|
707
|
-
f"[bold blue]Packaging Python app
|
|
739
|
+
self.status.update(
|
|
740
|
+
f"[bold blue]Packaging Python app {self.emojis['loading']}... ",
|
|
708
741
|
)
|
|
709
742
|
package_args = [
|
|
710
743
|
self.dart_exe,
|
|
@@ -774,11 +807,11 @@ class Command(BaseCommand):
|
|
|
774
807
|
app_hash_path = self.flutter_dir.joinpath("app", "app.zip.hash")
|
|
775
808
|
with open(app_hash_path, "w", encoding="utf8") as hf:
|
|
776
809
|
hf.write(calculate_file_hash(app_zip_path))
|
|
777
|
-
console.log("Packaged Python app
|
|
810
|
+
console.log(f"Packaged Python app {self.emojis['checkmark']}")
|
|
778
811
|
|
|
779
812
|
# run `flutter build`
|
|
780
|
-
status.update(
|
|
781
|
-
f"[bold blue]Building [cyan]{self.platforms[target_platform]['status_text']}[/cyan]
|
|
813
|
+
self.status.update(
|
|
814
|
+
f"[bold blue]Building [cyan]{self.platforms[target_platform]['status_text']}[/cyan] {self.emojis['loading']}... ",
|
|
782
815
|
)
|
|
783
816
|
build_args = [
|
|
784
817
|
self.flutter_exe,
|
|
@@ -814,12 +847,12 @@ class Command(BaseCommand):
|
|
|
814
847
|
console.log(build_result.stderr, style=error_style)
|
|
815
848
|
self.cleanup(build_result.returncode, check_flutter_version=True)
|
|
816
849
|
console.log(
|
|
817
|
-
f"Built [cyan]{self.platforms[target_platform]['status_text']}[/cyan]
|
|
850
|
+
f"Built [cyan]{self.platforms[target_platform]['status_text']}[/cyan] {self.emojis['checkmark']}",
|
|
818
851
|
)
|
|
819
852
|
|
|
820
853
|
# copy build results to `out_dir`
|
|
821
|
-
status.update(
|
|
822
|
-
f"[bold blue]Copying build to [cyan]{rel_out_dir}[/cyan] directory
|
|
854
|
+
self.status.update(
|
|
855
|
+
f"[bold blue]Copying build to [cyan]{rel_out_dir}[/cyan] directory {self.emojis['loading']}... ",
|
|
823
856
|
)
|
|
824
857
|
arch = platform.machine().lower()
|
|
825
858
|
if arch == "x86_64" or arch == "amd64":
|
|
@@ -858,12 +891,14 @@ class Command(BaseCommand):
|
|
|
858
891
|
# copy `assets` directory contents to the output directory
|
|
859
892
|
copy_tree(str(assets_path), str(out_dir))
|
|
860
893
|
|
|
861
|
-
console.log(
|
|
894
|
+
console.log(
|
|
895
|
+
f"Copied build to [cyan]{rel_out_dir}[/cyan] directory {self.emojis['checkmark']}"
|
|
896
|
+
)
|
|
862
897
|
|
|
863
898
|
self.cleanup(
|
|
864
899
|
0,
|
|
865
|
-
message=f"Successfully built your [cyan]{self.platforms[target_platform]['status_text']}[/cyan]!
|
|
866
|
-
f"Find it in [cyan]{rel_out_dir}[/cyan] directory.
|
|
900
|
+
message=f"Successfully built your [cyan]{self.platforms[target_platform]['status_text']}[/cyan]! {self.emojis['success']} "
|
|
901
|
+
f"Find it in [cyan]{rel_out_dir}[/cyan] directory. {self.emojis['directory']}",
|
|
867
902
|
)
|
|
868
903
|
|
|
869
904
|
def create_pyodide_find_links(self):
|
|
@@ -929,7 +964,7 @@ class Command(BaseCommand):
|
|
|
929
964
|
console.log(f"Deleting Flutter bootstrap directory {self.flutter_dir}")
|
|
930
965
|
shutil.rmtree(str(self.flutter_dir), ignore_errors=True, onerror=None)
|
|
931
966
|
if exit_code == 0:
|
|
932
|
-
msg = message or "Success!
|
|
967
|
+
msg = message or f"Success! {self.emojis['success']}"
|
|
933
968
|
console.log(msg)
|
|
934
969
|
else:
|
|
935
970
|
msg = (
|
|
@@ -937,6 +972,8 @@ class Command(BaseCommand):
|
|
|
937
972
|
if message is not None
|
|
938
973
|
else "Error building Flet app - see the log of failed command above."
|
|
939
974
|
)
|
|
975
|
+
console.log(msg, style=error_style)
|
|
976
|
+
|
|
940
977
|
if check_flutter_version:
|
|
941
978
|
version_results = self.run(
|
|
942
979
|
[self.flutter_exe, "--version"],
|
|
@@ -955,6 +992,19 @@ class Command(BaseCommand):
|
|
|
955
992
|
+ f"Flet build requires Flutter {MINIMAL_FLUTTER_VERSION} or above. "
|
|
956
993
|
+ f"You have {flutter_version}."
|
|
957
994
|
)
|
|
958
|
-
|
|
959
|
-
|
|
995
|
+
console.log(flutter_msg, style=error_style)
|
|
996
|
+
# run flutter doctor
|
|
997
|
+
self.run_flutter_doctor(style=error_style)
|
|
960
998
|
sys.exit(exit_code)
|
|
999
|
+
|
|
1000
|
+
def run_flutter_doctor(self, style: Optional[Union[Style, str]] = None):
|
|
1001
|
+
self.status.update(
|
|
1002
|
+
f"[bold blue]Running Flutter doctor {self.emojis['loading']}... "
|
|
1003
|
+
)
|
|
1004
|
+
flutter_doctor = self.run(
|
|
1005
|
+
[self.flutter_exe, "doctor"],
|
|
1006
|
+
cwd=os.getcwd(),
|
|
1007
|
+
capture_output=True,
|
|
1008
|
+
)
|
|
1009
|
+
if flutter_doctor.returncode == 0 and flutter_doctor.stdout:
|
|
1010
|
+
console.log(flutter_doctor.stdout, style=style)
|
|
@@ -42,9 +42,9 @@ const RESOURCES = {"assets/AssetManifest.json": "8d7810f1fb9e0cf9c7606bfcf9fc598
|
|
|
42
42
|
"canvaskit/chromium/canvaskit.js": "901bb9e28fac643b7da75ecfd3339f3f",
|
|
43
43
|
"canvaskit/chromium/canvaskit.js.symbols": "ee7e331f7f5bbf5ec937737542112372",
|
|
44
44
|
"python-worker.js": "62a4865b3d41771b39660076485879be",
|
|
45
|
-
"flutter_bootstrap.js": "
|
|
46
|
-
"index.html": "
|
|
47
|
-
"/": "
|
|
45
|
+
"flutter_bootstrap.js": "da2558be4cf083c4f744b55ba0bda734",
|
|
46
|
+
"index.html": "ea24000cd324a65a1fd8a5c134a2a4b2",
|
|
47
|
+
"/": "ea24000cd324a65a1fd8a5c134a2a4b2"};
|
|
48
48
|
// The application shell files that are downloaded before a service worker can
|
|
49
49
|
// start.
|
|
50
50
|
const CORE = ["main.dart.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
<script>
|
|
39
39
|
// The value below is injected by flutter build, do not touch.
|
|
40
|
-
const serviceWorkerVersion = "
|
|
40
|
+
const serviceWorkerVersion = "4084577547";
|
|
41
41
|
</script>
|
|
42
42
|
<!-- This script adds the flutter initialization JS code -->
|
|
43
43
|
<script src="flutter.js" defer></script>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flet-0.24.0.dev3203 → flet-0.24.0.dev3216}/src/flet/web/assets/fonts/MaterialIcons-Regular.otf
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|