Skip to content

Commit

Permalink
Flet 0.22 release notes (#3008)
Browse files Browse the repository at this point in the history
* Bump Flet version to 0.22.0

* Update comments in app.py

* Fixed: `ft.app(view=None)` is not properly handled

Fix #3000
  • Loading branch information
FeodorFitsner authored Apr 9, 2024
1 parent 94e4fa0 commit a77c84d
Show file tree
Hide file tree
Showing 18 changed files with 149 additions and 20 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
14 changes: 7 additions & 7 deletions client/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
83 changes: 83 additions & 0 deletions media/logo/flet-logo-white-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions packages/flet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/flet/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions packages/flet_audio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/flet_audio/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions packages/flet_audio_recorder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/flet_audio_recorder/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions packages/flet_lottie/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/flet_lottie/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/flet_rive/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions packages/flet_video/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/flet_video/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions packages/flet_webview/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/flet_webview/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/packages/flet-runtime/src/flet_runtime/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
)
Expand Down
8 changes: 3 additions & 5 deletions sdk/python/packages/flet/src/flet/fastapi/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(
Expand All @@ -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.
Expand Down

0 comments on commit a77c84d

Please sign in to comment.