flet 0.70.0.dev6293__py3-none-any.whl → 0.70.0.dev6316__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 might be problematic. Click here for more details.
- flet/controls/base_control.py +8 -11
- flet/controls/core/markdown.py +7 -0
- flet/controls/material/alert_dialog.py +9 -0
- flet/controls/material/app_bar.py +12 -0
- flet/controls/material/badge.py +7 -0
- flet/controls/material/banner.py +11 -0
- flet/version.py +1 -1
- {flet-0.70.0.dev6293.dist-info → flet-0.70.0.dev6316.dist-info}/METADATA +2 -1
- {flet-0.70.0.dev6293.dist-info → flet-0.70.0.dev6316.dist-info}/RECORD +12 -12
- {flet-0.70.0.dev6293.dist-info → flet-0.70.0.dev6316.dist-info}/WHEEL +0 -0
- {flet-0.70.0.dev6293.dist-info → flet-0.70.0.dev6316.dist-info}/entry_points.txt +0 -0
- {flet-0.70.0.dev6293.dist-info → flet-0.70.0.dev6316.dist-info}/top_level.txt +0 -0
flet/controls/base_control.py
CHANGED
|
@@ -16,13 +16,10 @@ from flet.utils.object_model import get_param_count
|
|
|
16
16
|
logger = logging.getLogger("flet")
|
|
17
17
|
controls_log = logging.getLogger("flet_controls")
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
if sys.version_info >= (3, 11): # Only use it for Python 3.11+
|
|
19
|
+
if sys.version_info >= (3, 11):
|
|
21
20
|
from typing import dataclass_transform
|
|
22
21
|
else:
|
|
23
|
-
|
|
24
|
-
def dataclass_transform(): # No-op decorator for older Python versions
|
|
25
|
-
return lambda x: x
|
|
22
|
+
from typing_extensions import dataclass_transform
|
|
26
23
|
|
|
27
24
|
|
|
28
25
|
if TYPE_CHECKING:
|
|
@@ -236,9 +233,9 @@ class BaseControl:
|
|
|
236
233
|
def update(self) -> None:
|
|
237
234
|
if hasattr(self, "_frozen"):
|
|
238
235
|
raise Exception("Frozen control cannot be updated.")
|
|
239
|
-
assert
|
|
240
|
-
|
|
241
|
-
)
|
|
236
|
+
assert (
|
|
237
|
+
self.page
|
|
238
|
+
), f"{self.__class__.__qualname__} Control must be added to the page first"
|
|
242
239
|
self.page.update(self)
|
|
243
240
|
|
|
244
241
|
async def _invoke_method(
|
|
@@ -247,9 +244,9 @@ class BaseControl:
|
|
|
247
244
|
arguments: Optional[dict[str, Any]] = None,
|
|
248
245
|
timeout: Optional[float] = None,
|
|
249
246
|
) -> Any:
|
|
250
|
-
assert
|
|
251
|
-
|
|
252
|
-
)
|
|
247
|
+
assert (
|
|
248
|
+
self.page
|
|
249
|
+
), f"{self.__class__.__qualname__} Control must be added to the page first"
|
|
253
250
|
|
|
254
251
|
return await self.page.session.invoke_method(
|
|
255
252
|
self._i, method_name, arguments, timeout
|
flet/controls/core/markdown.py
CHANGED
|
@@ -233,6 +233,13 @@ class MarkdownCustomCodeTheme:
|
|
|
233
233
|
class Markdown(LayoutControl):
|
|
234
234
|
"""
|
|
235
235
|
Renders text in markdown format.
|
|
236
|
+
|
|
237
|
+
```python
|
|
238
|
+
ft.Markdown(
|
|
239
|
+
value="# Welcome\\n\\nThis is **Markdown** rendered in Flet.",
|
|
240
|
+
width=260,
|
|
241
|
+
)
|
|
242
|
+
```
|
|
236
243
|
"""
|
|
237
244
|
|
|
238
245
|
value: str = ""
|
|
@@ -27,6 +27,15 @@ class AlertDialog(DialogControl):
|
|
|
27
27
|
It has an optional [`title`][(c).] and an optional list of [`actions`][(c).] . The
|
|
28
28
|
`title` is displayed above the [`content`][(c).] and the `actions` are displayed
|
|
29
29
|
below the `content`.
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
ft.AlertDialog(
|
|
33
|
+
title=ft.Text("Session expired"),
|
|
34
|
+
content=ft.Text("Please sign in again to continue."),
|
|
35
|
+
actions=[ft.TextButton("Dismiss")],
|
|
36
|
+
open=True,
|
|
37
|
+
)
|
|
38
|
+
```
|
|
30
39
|
"""
|
|
31
40
|
|
|
32
41
|
content: Optional[Control] = None
|
|
@@ -18,6 +18,18 @@ from flet.controls.types import (
|
|
|
18
18
|
class AppBar(AdaptiveControl):
|
|
19
19
|
"""
|
|
20
20
|
A material design app bar.
|
|
21
|
+
|
|
22
|
+
```python
|
|
23
|
+
ft.AppBar(
|
|
24
|
+
leading=ft.Icon(ft.Icons.MENU),
|
|
25
|
+
title=ft.Text("Dashboard"),
|
|
26
|
+
actions=[
|
|
27
|
+
ft.IconButton(ft.Icons.SEARCH),
|
|
28
|
+
ft.IconButton(ft.Icons.MORE_VERT),
|
|
29
|
+
],
|
|
30
|
+
bgcolor=ft.Colors.SURFACE_CONTAINER,
|
|
31
|
+
)
|
|
32
|
+
```
|
|
21
33
|
"""
|
|
22
34
|
|
|
23
35
|
leading: Optional[Control] = None
|
flet/controls/material/badge.py
CHANGED
|
@@ -16,6 +16,13 @@ class Badge(BaseControl):
|
|
|
16
16
|
Badges are used to show notifications, counts, or status information on navigation
|
|
17
17
|
items such as [`NavigationBar`][flet.] or [`NavigationRail`][flet.] destinations
|
|
18
18
|
or a button's icon.
|
|
19
|
+
|
|
20
|
+
```python
|
|
21
|
+
ft.FilledIconButton(
|
|
22
|
+
icon=ft.Icons.PHONE,
|
|
23
|
+
badge=ft.Badge(label="3"),
|
|
24
|
+
)
|
|
25
|
+
```
|
|
19
26
|
"""
|
|
20
27
|
|
|
21
28
|
label: Optional[StrOrControl] = None
|
flet/controls/material/banner.py
CHANGED
|
@@ -26,6 +26,17 @@ class Banner(DialogControl):
|
|
|
26
26
|
Banners are displayed at the top of the screen, below a top app bar. They are
|
|
27
27
|
persistent and non-modal, allowing the user to either ignore them or interact with
|
|
28
28
|
them at any time.
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
banner = ft.Banner(
|
|
32
|
+
leading=ft.Icon(ft.Icons.INFO_OUTLINED, color=ft.Colors.PRIMARY),
|
|
33
|
+
content=ft.Text("Backup completed successfully."),
|
|
34
|
+
actions=[ft.TextButton("Dismiss")],
|
|
35
|
+
bgcolor=ft.Colors.SURFACE_CONTAINER_LOW,
|
|
36
|
+
open=True,
|
|
37
|
+
)
|
|
38
|
+
page.show_dialog(banner)
|
|
39
|
+
```
|
|
29
40
|
"""
|
|
30
41
|
|
|
31
42
|
content: StrOrControl
|
flet/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet
|
|
3
|
-
Version: 0.70.0.
|
|
3
|
+
Version: 0.70.0.dev6316
|
|
4
4
|
Summary: Flet for Python - easily build interactive multi-platform apps in Python
|
|
5
5
|
Author-email: "Appveyor Systems Inc." <hello@flet.dev>
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -16,6 +16,7 @@ Requires-Dist: oauthlib>=3.2.2; platform_system != "Pyodide"
|
|
|
16
16
|
Requires-Dist: httpx>=0.28.1; platform_system != "Pyodide"
|
|
17
17
|
Requires-Dist: repath>=0.9.0
|
|
18
18
|
Requires-Dist: msgpack>=1.1.0
|
|
19
|
+
Requires-Dist: typing-extensions; python_version < "3.11"
|
|
19
20
|
Provides-Extra: all
|
|
20
21
|
Requires-Dist: flet-cli; extra == "all"
|
|
21
22
|
Requires-Dist: flet-desktop; extra == "all"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
flet/__init__.py,sha256=rj0DuM9ZNrzkM-TpQ35iIspYLzsrxOCwkVxOHRX6oiU,26152
|
|
2
2
|
flet/app.py,sha256=HSws0Zm4ZO0-Hp2P9h7xirCVnRkKCVXhuekyAXT_9Fo,11883
|
|
3
3
|
flet/cli.py,sha256=IUM25fY_sqMtl0hlQGhlMQaBb1oNyO0VZeeBgRodhuA,204
|
|
4
|
-
flet/version.py,sha256=
|
|
4
|
+
flet/version.py,sha256=veohFLhB4M-mNr6FphEWsqj9H1O6HF9DfslfeMt2zCc,2512
|
|
5
5
|
flet/auth/__init__.py,sha256=eDqmi0Ki8Resd198S7XxgYa2R14wnNqIXnYhBLPl8fQ,289
|
|
6
6
|
flet/auth/authorization.py,sha256=hP_36RiRPtSwmK_Yp6MMzAjQdDxbBiEcZ2yFNqyNiRs,357
|
|
7
7
|
flet/auth/authorization_service.py,sha256=6N2LvisSt7KI_VgfyCH0OaJ6jTcmXCkAldN1yYlakzQ,6410
|
|
@@ -34,7 +34,7 @@ flet/controls/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
34
34
|
flet/controls/adaptive_control.py,sha256=Pw0E7z0IlNSe05cQTi5BLElLF3OnlVLzwfvtOQpsRr8,1594
|
|
35
35
|
flet/controls/alignment.py,sha256=re4jnpuqNPPWs55bf8RB_c9llqcuGhZcCjdNutx2N5M,3257
|
|
36
36
|
flet/controls/animation.py,sha256=C3Sxqte4S225m3UvlQOm-DGxd1WJaqfdLpA6e10B_BM,3763
|
|
37
|
-
flet/controls/base_control.py,sha256=
|
|
37
|
+
flet/controls/base_control.py,sha256=Pn9b6ez81iFuWZw_rRsEHQw7CEkZVL8XHChORXgenPc,10545
|
|
38
38
|
flet/controls/base_page.py,sha256=SuuoK-XHqsTmOQZXYz84DxOibE9_43sKZulalSjIxYI,17927
|
|
39
39
|
flet/controls/blur.py,sha256=taMH4qtILyAFn1qNsgBGRV3z0GSH6V7VKPV3ZSBhOL4,602
|
|
40
40
|
flet/controls/border.py,sha256=O-Pt3pydzR8lZYDi83caDOhhfWurPMJHANeRyFZDIKg,8931
|
|
@@ -87,7 +87,7 @@ flet/controls/core/image.py,sha256=Qbooag88pvfqUq-hzf6C-Q1awib_bT3_cOeEAGhyjDA,5
|
|
|
87
87
|
flet/controls/core/interactive_viewer.py,sha256=xiS6UMOzTHed7xAnOr3D0Yi-Msv40wR_ugudRayi2lg,4897
|
|
88
88
|
flet/controls/core/keyboard_listener.py,sha256=Rml7c7pHNzTyBiSbW15cUXwhr5YddTrSo98z2tzWhaI,2527
|
|
89
89
|
flet/controls/core/list_view.py,sha256=zyWHHG8Tpr4VYztQFWA_mRipLXKO6bVJ-Ra1Gso4qp4,3273
|
|
90
|
-
flet/controls/core/markdown.py,sha256=
|
|
90
|
+
flet/controls/core/markdown.py,sha256=m6CE398R7uNpvNzxtRH3lS13It5-SBg79WvMToNidLo,11075
|
|
91
91
|
flet/controls/core/merge_semantics.py,sha256=o2olHjIDU-QNKAc8JHdQABiZUKeR4dWJApOCEcBaFF4,627
|
|
92
92
|
flet/controls/core/pagelet.py,sha256=VCcPOtlqfL-A0vnDKsUkVdKZkveFVvk5sK_8oWsESpU,4163
|
|
93
93
|
flet/controls/core/placeholder.py,sha256=XqqP1QmjlboezVKIrwZHA4FCcl06cptqxvYQs7kVkB8,992
|
|
@@ -148,11 +148,11 @@ flet/controls/cupertino/cupertino_textfield.py,sha256=Iu_6ZQCBj34iAFtmboZb909fD7
|
|
|
148
148
|
flet/controls/cupertino/cupertino_timer_picker.py,sha256=BNS2W8hUfiozKpiUZueo1h4_6YhxAd5zknR3WAGbs54,4438
|
|
149
149
|
flet/controls/cupertino/cupertino_tinted_button.py,sha256=SmLukUZWYU_c2roz81a1hY7x6KLYr3RaP2TKyLxVIXM,375
|
|
150
150
|
flet/controls/material/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
151
|
-
flet/controls/material/alert_dialog.py,sha256=
|
|
152
|
-
flet/controls/material/app_bar.py,sha256=
|
|
151
|
+
flet/controls/material/alert_dialog.py,sha256=_6D1a0iBDNImmExHjXzpxyGOnEA0DLk2Cj_Akl_uXio,7822
|
|
152
|
+
flet/controls/material/app_bar.py,sha256=Ol2UNCcUGi8HLmIdaxGQtIr-CM5HSD2iKIPg6Za1iOk,6703
|
|
153
153
|
flet/controls/material/auto_complete.py,sha256=MVesy4fUvLvY0pw_BDQXpRB5o9ac1Ci7icTdG4nC5oM,1856
|
|
154
|
-
flet/controls/material/badge.py,sha256=
|
|
155
|
-
flet/controls/material/banner.py,sha256=
|
|
154
|
+
flet/controls/material/badge.py,sha256=gWkDrqoZMIrjEreWeTaANlnzJn394Gj4vQZikuVAEIk,3365
|
|
155
|
+
flet/controls/material/banner.py,sha256=gFj9oNpPMNiAMnFNWkZiUdgGcE6T72VVVw73BeIRMvU,4512
|
|
156
156
|
flet/controls/material/bottom_app_bar.py,sha256=Rrx4LhiFxKkTAhyblvcuNenLuxNxc93tmlUULgKeVqo,2083
|
|
157
157
|
flet/controls/material/bottom_sheet.py,sha256=fQE725QwN0mxknh_CdkWIAPC5DHV1tzW_mCT-CzX9ZY,2791
|
|
158
158
|
flet/controls/material/button.py,sha256=8_CLLvjPO9ZXsaGkJhO1a3cVbG2Abe-40cEQcT9BPpY,4189
|
|
@@ -246,8 +246,8 @@ flet/utils/platform_utils.py,sha256=U4cqV3EPi5QNYjbhfZmtk41-KMtI_P7KvVdnZzMOgJA,
|
|
|
246
246
|
flet/utils/slugify.py,sha256=e-lsoDc2_dk5jQnySaHCU83AA4O6mguEgCEdk2smW2Y,466
|
|
247
247
|
flet/utils/strings.py,sha256=R63_i7PdSAStCDPJ-O_WHBt3H02JQ14GSbnjLIpPTUc,178
|
|
248
248
|
flet/utils/vector.py,sha256=pYZzjldBWCZbSeSkZ8VmujwcZC7VBWk1NLBPA-2th3U,3207
|
|
249
|
-
flet-0.70.0.
|
|
250
|
-
flet-0.70.0.
|
|
251
|
-
flet-0.70.0.
|
|
252
|
-
flet-0.70.0.
|
|
253
|
-
flet-0.70.0.
|
|
249
|
+
flet-0.70.0.dev6316.dist-info/METADATA,sha256=rUR3a8vyx1KJKaHvc6DePr8UsFgiHH_9rDYy8HjttxE,6109
|
|
250
|
+
flet-0.70.0.dev6316.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
251
|
+
flet-0.70.0.dev6316.dist-info/entry_points.txt,sha256=mbBhHNUnLHiDqR36WeJrfLJU0Y0y087-M4wagQmaQ_Y,39
|
|
252
|
+
flet-0.70.0.dev6316.dist-info/top_level.txt,sha256=HbLrSnWJX2jZOEZAI14cGzW8Q5BbOGTtE-7knD5FDh0,5
|
|
253
|
+
flet-0.70.0.dev6316.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|