diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b8beb700..99a243245 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Flet changelog +# 0.22.0 + +* Controls enhancement (see [#2882](https://github.com/flet-dev/flet/issues/2882) for details). +* `Theme` Enhancement ([#2955](https://github.com/flet-dev/flet/issues/2955)). +* `Rive` Control ([#2841](https://github.com/flet-dev/flet/issues/2841)). +* `Control.parent` property ([#2906](https://github.com/flet-dev/flet/issues/2906)). +* `Container.on_tap_down` event. +* Add `upload_endpoint_path` into `flet.fastapi.app` ([#2954](https://github.com/flet-dev/flet/issues/2954)). +* Add checkbox border side state ([#2973](https://github.com/flet-dev/flet/issues/2973)). +* Global context for session ([#2934](https://github.com/flet-dev/flet/issues/2934)). +* Fix silent error in `page.run_task` ([#2959](https://github.com/flet-dev/flet/issues/2959)). +* Web: patch html title with app_name ([#2909](https://github.com/flet-dev/flet/issues/2909)). +* `Container`: fix triggered both `on_click` and `on_long_press` events ([#2914](https://github.com/flet-dev/flet/issues/2914)). + # 0.21.2 * Add `--android-adaptive-icon-background` to `flet build` command. diff --git a/client/pubspec.lock b/client/pubspec.lock index e930178cb..679983a9c 100644 --- a/client/pubspec.lock +++ b/client/pubspec.lock @@ -223,49 +223,49 @@ packages: path: "../packages/flet" relative: true source: path - version: "0.21.2" + version: "0.22.0" flet_audio: dependency: "direct main" description: path: "../packages/flet_audio" relative: true source: path - version: "0.21.2" + version: "0.22.0" flet_audio_recorder: dependency: "direct main" description: path: "../packages/flet_audio_recorder" relative: true source: path - version: "0.21.2" + version: "0.22.0" flet_lottie: dependency: "direct main" description: path: "../packages/flet_lottie" relative: true source: path - version: "0.21.2" + version: "0.22.0" flet_rive: dependency: "direct main" description: path: "../packages/flet_rive" relative: true source: path - version: "0.21.2" + version: "0.22.0" flet_video: dependency: "direct main" description: path: "../packages/flet_video" relative: true source: path - version: "0.21.2" + version: "0.22.0" flet_webview: dependency: "direct main" description: path: "../packages/flet_webview" relative: true source: path - version: "0.21.2" + version: "0.22.0" flutter: dependency: "direct main" description: flutter diff --git a/media/logo/flet-logo-white-text.svg b/media/logo/flet-logo-white-text.svg new file mode 100644 index 000000000..be12f4a02 --- /dev/null +++ b/media/logo/flet-logo-white-text.svg @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + diff --git a/packages/flet/CHANGELOG.md b/packages/flet/CHANGELOG.md index 04c8333d6..833441b30 100644 --- a/packages/flet/CHANGELOG.md +++ b/packages/flet/CHANGELOG.md @@ -1,3 +1,17 @@ +# 0.22.0 + +* Controls enhancement (see [#2882](https://github.com/flet-dev/flet/issues/2882) for details). +* `Theme` Enhancement ([#2955](https://github.com/flet-dev/flet/issues/2955)). +* `Rive` Control ([#2841](https://github.com/flet-dev/flet/issues/2841)). +* `Control.parent` property ([#2906](https://github.com/flet-dev/flet/issues/2906)). +* `Container.on_tap_down` event. +* Add `upload_endpoint_path` into `flet.fastapi.app` ([#2954](https://github.com/flet-dev/flet/issues/2954)). +* Add checkbox border side state ([#2973](https://github.com/flet-dev/flet/issues/2973)). +* Global context for session ([#2934](https://github.com/flet-dev/flet/issues/2934)). +* Fix silent error in `page.run_task` ([#2959](https://github.com/flet-dev/flet/issues/2959)). +* Web: patch html title with app_name ([#2909](https://github.com/flet-dev/flet/issues/2909)). +* `Container`: fix triggered both `on_click` and `on_long_press` events ([#2914](https://github.com/flet-dev/flet/issues/2914)). + # 0.21.2 * Fix for mobile Safari: Store session ID in SessionStorage instead of window.name. diff --git a/packages/flet/pubspec.yaml b/packages/flet/pubspec.yaml index 91bda4c5b..0e989e4a6 100644 --- a/packages/flet/pubspec.yaml +++ b/packages/flet/pubspec.yaml @@ -2,7 +2,7 @@ name: flet description: Write entire Flutter app in Python or add server-driven UI experience into existing Flutter app. homepage: https://flet.dev repository: https://github.com/flet-dev/flet/packages/flet -version: 0.21.2 +version: 0.22.0 # This package supports all platforms listed below. platforms: diff --git a/packages/flet_audio/CHANGELOG.md b/packages/flet_audio/CHANGELOG.md index c90b135bd..b669c42ab 100644 --- a/packages/flet_audio/CHANGELOG.md +++ b/packages/flet_audio/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.22.0 + +No changes in this release. Version bumped to follow parent `flet` package. + # 0.21.2 No changes in this release. Version bumped to follow parent `flet` package. diff --git a/packages/flet_audio/pubspec.yaml b/packages/flet_audio/pubspec.yaml index 88f9039d1..0000b3942 100644 --- a/packages/flet_audio/pubspec.yaml +++ b/packages/flet_audio/pubspec.yaml @@ -2,7 +2,7 @@ name: flet_audio description: Flet Audio control homepage: https://flet.dev repository: https://github.com/flet-dev/flet/packages/flet_audio -version: 0.21.2 +version: 0.22.0 environment: sdk: '>=3.2.3 <4.0.0' diff --git a/packages/flet_audio_recorder/CHANGELOG.md b/packages/flet_audio_recorder/CHANGELOG.md index c90b135bd..b669c42ab 100644 --- a/packages/flet_audio_recorder/CHANGELOG.md +++ b/packages/flet_audio_recorder/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.22.0 + +No changes in this release. Version bumped to follow parent `flet` package. + # 0.21.2 No changes in this release. Version bumped to follow parent `flet` package. diff --git a/packages/flet_audio_recorder/pubspec.yaml b/packages/flet_audio_recorder/pubspec.yaml index 90aa188c1..d40322d62 100644 --- a/packages/flet_audio_recorder/pubspec.yaml +++ b/packages/flet_audio_recorder/pubspec.yaml @@ -2,7 +2,7 @@ name: flet_audio_recorder description: Flet AudioRecorder control homepage: https://flet.dev repository: https://github.com/flet-dev/flet/packages/flet_audio_recorder -version: 0.21.2 +version: 0.22.0 environment: sdk: '>=3.2.3 <4.0.0' diff --git a/packages/flet_lottie/CHANGELOG.md b/packages/flet_lottie/CHANGELOG.md index b3f8a3e97..af062bb7b 100644 --- a/packages/flet_lottie/CHANGELOG.md +++ b/packages/flet_lottie/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.22.0 + +No changes in this release. Version bumped to follow parent `flet` package. + # 0.21.2 No changes in this release. Version bumped to follow parent `flet` package. diff --git a/packages/flet_lottie/pubspec.yaml b/packages/flet_lottie/pubspec.yaml index a3c7ba010..5abcc0dbe 100644 --- a/packages/flet_lottie/pubspec.yaml +++ b/packages/flet_lottie/pubspec.yaml @@ -2,7 +2,7 @@ name: flet_lottie description: Flet Lottie control homepage: https://flet.dev repository: https://github.com/flet-dev/flet/packages/flet_lottie -version: 0.21.2 +version: 0.22.0 environment: sdk: '>=3.2.3 <4.0.0' diff --git a/packages/flet_rive/pubspec.yaml b/packages/flet_rive/pubspec.yaml index 02cb9da11..d56ec3b7e 100644 --- a/packages/flet_rive/pubspec.yaml +++ b/packages/flet_rive/pubspec.yaml @@ -2,7 +2,7 @@ name: flet_rive description: Flet Rive control homepage: https://flet.dev repository: https://github.com/flet-dev/flet/packages/flet_rive -version: 0.21.2 +version: 0.22.0 environment: sdk: '>=3.2.3 <4.0.0' diff --git a/packages/flet_video/CHANGELOG.md b/packages/flet_video/CHANGELOG.md index c90b135bd..b669c42ab 100644 --- a/packages/flet_video/CHANGELOG.md +++ b/packages/flet_video/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.22.0 + +No changes in this release. Version bumped to follow parent `flet` package. + # 0.21.2 No changes in this release. Version bumped to follow parent `flet` package. diff --git a/packages/flet_video/pubspec.yaml b/packages/flet_video/pubspec.yaml index 2317cd855..a015dd62d 100644 --- a/packages/flet_video/pubspec.yaml +++ b/packages/flet_video/pubspec.yaml @@ -2,7 +2,7 @@ name: flet_video description: Flet Video control homepage: https://flet.dev repository: https://github.com/flet-dev/flet/packages/flet_video -version: 0.21.2 +version: 0.22.0 environment: sdk: '>=3.2.3 <4.0.0' diff --git a/packages/flet_webview/CHANGELOG.md b/packages/flet_webview/CHANGELOG.md index c90b135bd..b669c42ab 100644 --- a/packages/flet_webview/CHANGELOG.md +++ b/packages/flet_webview/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.22.0 + +No changes in this release. Version bumped to follow parent `flet` package. + # 0.21.2 No changes in this release. Version bumped to follow parent `flet` package. diff --git a/packages/flet_webview/pubspec.yaml b/packages/flet_webview/pubspec.yaml index ec57f9c62..96549ed76 100644 --- a/packages/flet_webview/pubspec.yaml +++ b/packages/flet_webview/pubspec.yaml @@ -2,7 +2,7 @@ name: flet_webview description: Flet WebView control homepage: https://flet.dev repository: https://github.com/flet-dev/flet/packages/flet_webview -version: 0.21.2 +version: 0.22.0 environment: sdk: '>=3.2.3 <4.0.0' diff --git a/sdk/python/packages/flet-runtime/src/flet_runtime/app.py b/sdk/python/packages/flet-runtime/src/flet_runtime/app.py index ba096b0ac..534c54ab2 100644 --- a/sdk/python/packages/flet-runtime/src/flet_runtime/app.py +++ b/sdk/python/packages/flet-runtime/src/flet_runtime/app.py @@ -163,7 +163,7 @@ def exit_gracefully(signum, frame): web_renderer=web_renderer, use_color_emoji=use_color_emoji, route_url_strategy=route_url_strategy, - blocking=(view == AppView.WEB_BROWSER or force_web_server), + blocking=(view == AppView.WEB_BROWSER or view is None or force_web_server), on_startup=on_app_startup, ) ) diff --git a/sdk/python/packages/flet/src/flet/fastapi/app.py b/sdk/python/packages/flet/src/flet/fastapi/app.py index b1210a66b..6e5b0a0d3 100644 --- a/sdk/python/packages/flet/src/flet/fastapi/app.py +++ b/sdk/python/packages/flet/src/flet/fastapi/app.py @@ -3,9 +3,6 @@ from typing import Awaitable, Callable, Optional, Union from fastapi import Request, WebSocket -from flet_core.page import Page -from flet_core.types import WebRenderer - from flet.fastapi.flet_app import ( DEFAULT_FLET_OAUTH_STATE_TIMEOUT, DEFAULT_FLET_SESSION_TIMEOUT, @@ -15,6 +12,8 @@ from flet.fastapi.flet_oauth import FletOAuth from flet.fastapi.flet_static_files import FletStaticFiles from flet.fastapi.flet_upload import FletUpload +from flet_core.page import Page +from flet_core.types import WebRenderer def app( @@ -38,8 +37,7 @@ def app( Mount all Flet FastAPI handlers in one call. Parameters: - * `fastapi_app` (FastAPI) - FastAPI application instance. - * `session_handler` (Coroutine) - application entry point - an async method called for newly connected user. Handler coroutine must have 1 parameter: `page` - `Page` instance. + * `session_handler` (function or coroutine) - application entry point - a method called for newly connected user. Handler must have 1 parameter: `page` - `Page` instance. * `assets_dir` (str, optional) - an absolute path to app's assets directory. * `app_name` (str, optional) - PWA application name. * `app_short_name` (str, optional) - PWA application short name.