flet 0.70.0.dev5623__py3-none-any.whl → 0.70.0.dev5771__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/__init__.py +2 -0
- flet/controls/adaptive_control.py +16 -13
- flet/controls/base_page.py +5 -5
- flet/controls/border.py +4 -3
- flet/controls/box.py +6 -11
- flet/controls/buttons.py +7 -7
- flet/controls/context.py +2 -2
- flet/controls/control.py +18 -11
- flet/controls/core/animated_switcher.py +9 -13
- flet/controls/core/canvas/canvas.py +1 -1
- flet/controls/core/canvas/line.py +2 -3
- flet/controls/core/canvas/oval.py +1 -1
- flet/controls/core/canvas/shape.py +10 -10
- flet/controls/core/canvas/text.py +1 -1
- flet/controls/core/column.py +5 -5
- flet/controls/core/dismissible.py +8 -8
- flet/controls/core/drag_target.py +5 -4
- flet/controls/core/draggable.py +19 -14
- flet/controls/core/grid_view.py +2 -2
- flet/controls/core/image.py +1 -1
- flet/controls/core/interactive_viewer.py +2 -2
- flet/controls/core/list_view.py +7 -7
- flet/controls/core/markdown.py +1 -1
- flet/controls/core/pagelet.py +10 -10
- flet/controls/core/reorderable_draggable.py +1 -1
- flet/controls/core/responsive_row.py +7 -7
- flet/controls/core/row.py +8 -8
- flet/controls/core/semantics.py +9 -6
- flet/controls/core/shader_mask.py +3 -3
- flet/controls/core/stack.py +4 -4
- flet/controls/core/text.py +7 -7
- flet/controls/core/text_span.py +4 -4
- flet/controls/core/transparent_pointer.py +3 -3
- flet/controls/core/view.py +16 -16
- flet/controls/core/window.py +1 -1
- flet/controls/core/window_drag_area.py +1 -1
- flet/controls/cupertino/cupertino_action_sheet.py +19 -8
- flet/controls/cupertino/cupertino_activity_indicator.py +5 -6
- flet/controls/cupertino/cupertino_alert_dialog.py +7 -10
- flet/controls/cupertino/cupertino_app_bar.py +34 -34
- flet/controls/cupertino/cupertino_bottom_sheet.py +5 -5
- flet/controls/cupertino/cupertino_button.py +4 -4
- flet/controls/cupertino/cupertino_checkbox.py +33 -40
- flet/controls/cupertino/cupertino_context_menu.py +7 -6
- flet/controls/cupertino/cupertino_context_menu_action.py +2 -4
- flet/controls/cupertino/cupertino_date_picker.py +35 -37
- flet/controls/cupertino/cupertino_dialog_action.py +12 -9
- flet/controls/cupertino/cupertino_list_tile.py +24 -36
- flet/controls/cupertino/cupertino_navigation_bar.py +10 -11
- flet/controls/cupertino/cupertino_picker.py +11 -10
- flet/controls/cupertino/cupertino_radio.py +10 -13
- flet/controls/cupertino/cupertino_segmented_button.py +9 -12
- flet/controls/cupertino/cupertino_slider.py +6 -9
- flet/controls/cupertino/cupertino_sliding_segmented_button.py +14 -17
- flet/controls/cupertino/cupertino_switch.py +30 -41
- flet/controls/cupertino/cupertino_textfield.py +14 -18
- flet/controls/cupertino/cupertino_timer_picker.py +11 -8
- flet/controls/exceptions.py +5 -5
- flet/controls/icon_data.py +2 -2
- flet/controls/keys.py +2 -1
- flet/controls/layout_control.py +22 -27
- flet/controls/material/alert_dialog.py +44 -50
- flet/controls/material/app_bar.py +41 -45
- flet/controls/material/auto_complete.py +10 -8
- flet/controls/material/badge.py +32 -28
- flet/controls/material/banner.py +14 -14
- flet/controls/material/bottom_app_bar.py +7 -9
- flet/controls/material/bottom_sheet.py +10 -10
- flet/controls/material/button.py +2 -24
- flet/controls/material/card.py +10 -11
- flet/controls/material/checkbox.py +41 -49
- flet/controls/material/chip.py +44 -47
- flet/controls/material/circle_avatar.py +19 -22
- flet/controls/material/container.py +16 -123
- flet/controls/material/datatable.py +71 -95
- flet/controls/material/date_picker.py +13 -14
- flet/controls/material/date_range_picker.py +183 -0
- flet/controls/material/divider.py +24 -23
- flet/controls/material/dropdown.py +13 -13
- flet/controls/material/expansion_tile.py +5 -6
- flet/controls/material/filled_button.py +1 -1
- flet/controls/material/floating_action_button.py +2 -2
- flet/controls/material/form_field_control.py +64 -56
- flet/controls/material/icon_button.py +29 -65
- flet/controls/material/list_tile.py +25 -23
- flet/controls/material/menu_item_button.py +2 -2
- flet/controls/material/navigation_bar.py +3 -3
- flet/controls/material/navigation_rail.py +11 -11
- flet/controls/material/outlined_button.py +1 -1
- flet/controls/material/popup_menu_button.py +3 -3
- flet/controls/material/progress_bar.py +15 -22
- flet/controls/material/progress_ring.py +8 -8
- flet/controls/material/radio.py +3 -8
- flet/controls/material/range_slider.py +1 -1
- flet/controls/material/search_bar.py +15 -16
- flet/controls/material/segmented_button.py +4 -4
- flet/controls/material/selection_area.py +4 -3
- flet/controls/material/slider.py +16 -16
- flet/controls/material/snack_bar.py +33 -32
- flet/controls/material/submenu_button.py +9 -9
- flet/controls/material/switch.py +13 -13
- flet/controls/material/tabs.py +77 -78
- flet/controls/material/text_button.py +2 -2
- flet/controls/material/textfield.py +4 -6
- flet/controls/material/tooltip.py +16 -15
- flet/controls/material/vertical_divider.py +10 -10
- flet/controls/page.py +4 -4
- flet/controls/painting.py +2 -2
- flet/controls/scrollable_control.py +1 -1
- flet/controls/services/file_picker.py +7 -7
- flet/controls/services/haptic_feedback.py +1 -1
- flet/controls/services/shake_detector.py +1 -1
- flet/controls/services/storage_paths.py +3 -3
- flet/controls/text_style.py +1 -1
- flet/controls/theme.py +611 -609
- flet/controls/types.py +11 -11
- flet/testing/flet_test_app.py +4 -4
- flet/version.py +1 -1
- {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5771.dist-info}/METADATA +5 -5
- flet-0.70.0.dev5771.dist-info/RECORD +239 -0
- flet-0.70.0.dev5623.dist-info/RECORD +0 -238
- {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5771.dist-info}/WHEEL +0 -0
- {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5771.dist-info}/entry_points.txt +0 -0
- {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5771.dist-info}/top_level.txt +0 -0
|
@@ -19,8 +19,8 @@ class VerticalDivider(Control):
|
|
|
19
19
|
"""
|
|
20
20
|
The divider's width. The divider itself is always drawn as a vertical line
|
|
21
21
|
that is centered within the width specified by this value.
|
|
22
|
-
|
|
23
|
-
If `None`, [`DividerTheme.space`][flet.
|
|
22
|
+
|
|
23
|
+
If `None`, [`DividerTheme.space`][flet.] is used.
|
|
24
24
|
If that's is also `None`, defaults to `16.0`.
|
|
25
25
|
"""
|
|
26
26
|
|
|
@@ -32,7 +32,7 @@ class VerticalDivider(Control):
|
|
|
32
32
|
A divider with a thickness of `0.0` is always drawn as a line with a width of
|
|
33
33
|
exactly one device pixel.
|
|
34
34
|
|
|
35
|
-
If `None`, [`DividerTheme.thickness`][flet.
|
|
35
|
+
If `None`, [`DividerTheme.thickness`][flet.] is used.
|
|
36
36
|
If that's is also `None`, defaults to `0.0`.
|
|
37
37
|
"""
|
|
38
38
|
|
|
@@ -40,24 +40,24 @@ class VerticalDivider(Control):
|
|
|
40
40
|
"""
|
|
41
41
|
The color to use when painting the
|
|
42
42
|
line.
|
|
43
|
-
|
|
44
|
-
If `None`, [`DividerTheme.color`][flet.
|
|
45
|
-
If that's is also `None`, defaults to [`Theme.divider_color`][flet.
|
|
43
|
+
|
|
44
|
+
If `None`, [`DividerTheme.color`][flet.] is used.
|
|
45
|
+
If that's is also `None`, defaults to [`Theme.divider_color`][flet.].
|
|
46
46
|
"""
|
|
47
47
|
|
|
48
48
|
leading_indent: Optional[Number] = None
|
|
49
49
|
"""
|
|
50
50
|
The amount of empty space to the leading edge of the divider.
|
|
51
|
-
|
|
52
|
-
If `None`, [`DividerTheme.leading_indent`][flet.
|
|
51
|
+
|
|
52
|
+
If `None`, [`DividerTheme.leading_indent`][flet.] is used.
|
|
53
53
|
If that's is also `None`, defaults to `0.0`.
|
|
54
54
|
"""
|
|
55
55
|
|
|
56
56
|
trailing_indent: Optional[Number] = None
|
|
57
57
|
"""
|
|
58
58
|
The amount of empty space to the trailing edge of the divider.
|
|
59
|
-
|
|
60
|
-
If `None`, [`DividerTheme.trailing_indent`][flet.
|
|
59
|
+
|
|
60
|
+
If `None`, [`DividerTheme.trailing_indent`][flet.] is used.
|
|
61
61
|
If that's is also `None`, defaults to `0.0`.
|
|
62
62
|
"""
|
|
63
63
|
|
flet/controls/page.py
CHANGED
|
@@ -167,7 +167,7 @@ class MultiViewRemoveEvent(Event["Page"]):
|
|
|
167
167
|
@control("Page", isolated=True, post_init_args=2)
|
|
168
168
|
class Page(BasePage):
|
|
169
169
|
"""
|
|
170
|
-
Page is a container for [`View`][flet.
|
|
170
|
+
Page is a container for [`View`][flet.] controls.
|
|
171
171
|
|
|
172
172
|
A page instance and the root view are automatically created when a new
|
|
173
173
|
user session started.
|
|
@@ -343,7 +343,7 @@ class Page(BasePage):
|
|
|
343
343
|
on_view_pop: Optional[EventHandler[ViewPopEvent]] = None
|
|
344
344
|
"""
|
|
345
345
|
Called when the user clicks automatic "Back" button in
|
|
346
|
-
[`AppBar`][flet.
|
|
346
|
+
[`AppBar`][flet.] control.
|
|
347
347
|
"""
|
|
348
348
|
|
|
349
349
|
on_keyboard_event: Optional[EventHandler[KeyboardEvent]] = None
|
|
@@ -695,8 +695,8 @@ class Page(BasePage):
|
|
|
695
695
|
Args:
|
|
696
696
|
url: The URL to open.
|
|
697
697
|
web_popup_window_name: Window tab/name to open URL in. Use
|
|
698
|
-
[`UrlTarget.SELF`][flet.
|
|
699
|
-
for the same browser tab, [`UrlTarget.BLANK`][flet.
|
|
698
|
+
[`UrlTarget.SELF`][flet.]
|
|
699
|
+
for the same browser tab, [`UrlTarget.BLANK`][flet.]
|
|
700
700
|
for a new browser tab (or in external application on mobile device),
|
|
701
701
|
or a custom name for a named tab.
|
|
702
702
|
web_popup_window: Display the URL in a browser popup window.
|
flet/controls/painting.py
CHANGED
|
@@ -59,7 +59,7 @@ class PaintLinearGradient(PaintGradient):
|
|
|
59
59
|
the stops. This list must contain at least two colors.
|
|
60
60
|
|
|
61
61
|
Note:
|
|
62
|
-
If [`color_stops`][
|
|
62
|
+
If [`color_stops`][(c).] is not `None`,
|
|
63
63
|
this list must have the same length as `color_stops`.
|
|
64
64
|
"""
|
|
65
65
|
|
|
@@ -69,7 +69,7 @@ class PaintLinearGradient(PaintGradient):
|
|
|
69
69
|
|
|
70
70
|
Note:
|
|
71
71
|
If non-none, this list must have the same length as
|
|
72
|
-
[`colors`][
|
|
72
|
+
[`colors`][(c).].
|
|
73
73
|
If the first value is not `0.0`, then a stop with position `0.0` and a color
|
|
74
74
|
equal to the first color in `colors` is implied. If the last value is not
|
|
75
75
|
`1.0`, then a stop with position `1.0` and a color equal to the last color
|
|
@@ -19,7 +19,7 @@ __all__ = [
|
|
|
19
19
|
class FilePickerFileType(Enum):
|
|
20
20
|
"""
|
|
21
21
|
Defines the file types that can be selected using the
|
|
22
|
-
[`FilePicker`][flet.
|
|
22
|
+
[`FilePicker`][flet.].
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
ANY = "any"
|
|
@@ -29,8 +29,8 @@ class FilePickerFileType(Enum):
|
|
|
29
29
|
|
|
30
30
|
MEDIA = "media"
|
|
31
31
|
"""
|
|
32
|
-
A combination of [`VIDEO`][
|
|
33
|
-
[`IMAGE`][
|
|
32
|
+
A combination of [`VIDEO`][(c).] and
|
|
33
|
+
[`IMAGE`][(c).].
|
|
34
34
|
"""
|
|
35
35
|
|
|
36
36
|
IMAGE = "image"
|
|
@@ -133,11 +133,11 @@ class FilePicker(Service):
|
|
|
133
133
|
Uploads selected files to specified upload URLs.
|
|
134
134
|
|
|
135
135
|
Before calling this method,
|
|
136
|
-
[`pick_files()`][
|
|
136
|
+
[`pick_files()`][(c).pick_files]
|
|
137
137
|
must be called, so that the internal file picker selection is not empty.
|
|
138
138
|
|
|
139
139
|
Args:
|
|
140
|
-
files: A list of [`FilePickerUploadFile`][flet.
|
|
140
|
+
files: A list of [`FilePickerUploadFile`][flet.], where
|
|
141
141
|
each item specifies which file to upload, and where
|
|
142
142
|
(with PUT or POST).
|
|
143
143
|
"""
|
|
@@ -202,7 +202,7 @@ class FilePicker(Service):
|
|
|
202
202
|
iOS or Android modes.
|
|
203
203
|
allowed_extensions: The allowed file extensions. Has effect only if
|
|
204
204
|
`file_type` is
|
|
205
|
-
[`FilePickerFileType.CUSTOM`][flet.
|
|
205
|
+
[`FilePickerFileType.CUSTOM`][flet.].
|
|
206
206
|
|
|
207
207
|
Raises:
|
|
208
208
|
ValueError: If `src_bytes` is not provided, when called in web mode,
|
|
@@ -249,7 +249,7 @@ class FilePicker(Service):
|
|
|
249
249
|
allow_multiple: Allow the selection of multiple files at once.
|
|
250
250
|
allowed_extensions: The allowed file extensions. Has effect only if
|
|
251
251
|
`file_type` is
|
|
252
|
-
[`FilePickerFileType.CUSTOM`][flet.
|
|
252
|
+
[`FilePickerFileType.CUSTOM`][flet.].
|
|
253
253
|
"""
|
|
254
254
|
files = await self._invoke_method(
|
|
255
255
|
"pick_files",
|
|
@@ -10,7 +10,7 @@ class HapticFeedback(Service):
|
|
|
10
10
|
Allows access to the haptic feedback interface on the device.
|
|
11
11
|
|
|
12
12
|
It is non-visual and should be added to
|
|
13
|
-
[`Page.services`][flet.
|
|
13
|
+
[`Page.services`][flet.] list before it can be used.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
async def heavy_impact(self):
|
|
@@ -14,7 +14,7 @@ class ShakeDetector(Service):
|
|
|
14
14
|
Detects phone shakes.
|
|
15
15
|
|
|
16
16
|
It is non-visual and should be added to
|
|
17
|
-
[`Page.services`][flet.
|
|
17
|
+
[`Page.services`][flet.] list before it can be used.
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
20
|
minimum_shake_count: int = 1
|
|
@@ -39,9 +39,9 @@ class StoragePaths(Service):
|
|
|
39
39
|
|
|
40
40
|
For non-user-generated data, consider using:
|
|
41
41
|
|
|
42
|
-
- [`get_application_support_directory()`][
|
|
43
|
-
- [`get_application_cache_directory()`][
|
|
44
|
-
- [`get_external_storage_directory()`][
|
|
42
|
+
- [`get_application_support_directory()`][(c).get_application_support_directory]
|
|
43
|
+
- [`get_application_cache_directory()`][(c).get_application_cache_directory]
|
|
44
|
+
- [`get_external_storage_directory()`][(c).get_external_storage_directory]
|
|
45
45
|
|
|
46
46
|
Raises:
|
|
47
47
|
FletUnsupportedPlatformException: If called on the web platform.
|
flet/controls/text_style.py
CHANGED