Releases: flet-dev/flet
Releases · flet-dev/flet
v0.1.62
Changelog
- 8897090 Update pubspec.lock
- f39a069 GestureDetector and fixes (#459)
- 05a6e8c removed all problems except dart:html problem because it needs material html kind of thing (#461)
- 202be99 fix: ensure correct version is fetched in dev mode (#443)
- 4f6b675 Fix controls setter for empty list input (#454)
- c29478e make ink=True behavior consistent with ink=False (#427)
v0.1.61
Changelog
- 5ed09e9 Bump new release
- 9335866 Merge branch 'main' of https://github.com/flet-dev/flet
- 64131a5 Disable brew update
- 03b54e5 updated link to contribution file (#429)
- 79e078f extract Flutter to $HOME
- d311b28 Install Flutter to $HOME/flutter
- d1bfe1a Audio control (#425)
- 73a3083 Added link to CONTRIBUTION.md (#418)
- 97e0cdf Querystring2 (debugging) (#415)
v0.1.60
v0.1.59
v0.1.58
v0.1.57
v0.1.56
v0.1.55
v0.1.54
v0.1.53
Desktop Flet app can be started with a hidden window
New view=flet.FLET_APP_HIDDEN argument - run app with a hidden window on the startup. Window could be made visible from a user code:
import flet
from flet import Container, IconButton, Page, Row, Text, WindowDragArea, icons
def main(page: Page):
page.add(
Row(
[
WindowDragArea(
Container(
Text("This is a window move drag area."),
bgcolor="yellow",
padding=10,
),
expand=1,
),
IconButton(icon=icons.CLOSE, on_click=lambda _: page.window_close()),
]
)
)
page.window_width = 600
page.window_height = 400
page.window_title_bar_hidden = True
page.window_frameless = True
page.window_visible = True
page.window_center()
flet.app(target=main, view=flet.FLET_APP_HIDDEN)New page properties to control window appearance and behavior
page.window_close()page.window_title_bar_hiddenpage.window_title_bar_buttons_hidden(macOS only)page.window_skip_task_barpage.window_framelesspage.window_progress_barpage.window_visible
New WindowDragArea class to enable dragging/maximizing/restoring window without a title bar.
Other changes
New Stack properties:
Stack.clip_behavior-none,antiAlias,antiAliasWithSaveLayer,hardEdge.
Hot reload
For hot-reload run your Python program with flet command line:
usage: flet [-h] [--port PORT] [--directory] [--recursive] [--hidden] [--web] script
Runs Flet app in Python with hot reload.
positional arguments:
script path to a Python script
optional arguments:
-h, --help show this help message and exit
--port PORT, -p PORT custom TCP port to run Flet app on
--directory, -d watch script directory
--recursive, -r watch script directory and all sub-directories recursively
--hidden, -n application window is hidden on startup
--web, -w open app in a web browser
By default, flet watches script file one. Use --directory flag to watch all files in script's directory. Use --recursive flag to watch script directory and all sub-directories recursively.
For example:
flet main.py -d
Platform details
New page properties:
web-Trueif the app running in the browser.platform- operating system where the app is running:windows,macos,linux,iosandandroid.
Customisable route transitions
theme = Theme()
theme.page_transitions.android = "openUpwards"
theme.page_transitions.ios = "cupertino"
theme.page_transitions.macos = "fadeUpwards"
theme.page_transitions.linux = "zoom"
theme.page_transitions.windows = "zoom"
page.theme = themePossible values: fadeUpwards, openUpwards, zoom, cupertino.