flet 0.70.0.dev5623__py3-none-any.whl → 0.70.0.dev5774__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.

Files changed (125) hide show
  1. flet/__init__.py +2 -0
  2. flet/controls/adaptive_control.py +16 -13
  3. flet/controls/base_page.py +5 -5
  4. flet/controls/border.py +4 -3
  5. flet/controls/box.py +6 -11
  6. flet/controls/buttons.py +7 -7
  7. flet/controls/context.py +2 -2
  8. flet/controls/control.py +18 -11
  9. flet/controls/core/animated_switcher.py +9 -13
  10. flet/controls/core/canvas/canvas.py +1 -1
  11. flet/controls/core/canvas/line.py +2 -3
  12. flet/controls/core/canvas/oval.py +1 -1
  13. flet/controls/core/canvas/shape.py +10 -10
  14. flet/controls/core/canvas/text.py +1 -1
  15. flet/controls/core/column.py +5 -5
  16. flet/controls/core/dismissible.py +8 -8
  17. flet/controls/core/drag_target.py +5 -4
  18. flet/controls/core/draggable.py +19 -14
  19. flet/controls/core/grid_view.py +2 -2
  20. flet/controls/core/image.py +1 -1
  21. flet/controls/core/interactive_viewer.py +2 -2
  22. flet/controls/core/list_view.py +7 -7
  23. flet/controls/core/markdown.py +1 -1
  24. flet/controls/core/pagelet.py +10 -10
  25. flet/controls/core/reorderable_draggable.py +1 -1
  26. flet/controls/core/responsive_row.py +7 -7
  27. flet/controls/core/row.py +8 -8
  28. flet/controls/core/semantics.py +9 -6
  29. flet/controls/core/shader_mask.py +3 -3
  30. flet/controls/core/stack.py +4 -4
  31. flet/controls/core/text.py +7 -7
  32. flet/controls/core/text_span.py +4 -4
  33. flet/controls/core/transparent_pointer.py +3 -3
  34. flet/controls/core/view.py +16 -16
  35. flet/controls/core/window.py +1 -1
  36. flet/controls/core/window_drag_area.py +1 -1
  37. flet/controls/cupertino/cupertino_action_sheet.py +19 -8
  38. flet/controls/cupertino/cupertino_activity_indicator.py +5 -6
  39. flet/controls/cupertino/cupertino_alert_dialog.py +7 -10
  40. flet/controls/cupertino/cupertino_app_bar.py +34 -34
  41. flet/controls/cupertino/cupertino_bottom_sheet.py +5 -5
  42. flet/controls/cupertino/cupertino_button.py +4 -4
  43. flet/controls/cupertino/cupertino_checkbox.py +33 -40
  44. flet/controls/cupertino/cupertino_context_menu.py +7 -6
  45. flet/controls/cupertino/cupertino_context_menu_action.py +2 -4
  46. flet/controls/cupertino/cupertino_date_picker.py +35 -37
  47. flet/controls/cupertino/cupertino_dialog_action.py +12 -9
  48. flet/controls/cupertino/cupertino_list_tile.py +24 -36
  49. flet/controls/cupertino/cupertino_navigation_bar.py +10 -11
  50. flet/controls/cupertino/cupertino_picker.py +11 -10
  51. flet/controls/cupertino/cupertino_radio.py +10 -13
  52. flet/controls/cupertino/cupertino_segmented_button.py +9 -12
  53. flet/controls/cupertino/cupertino_slider.py +6 -9
  54. flet/controls/cupertino/cupertino_sliding_segmented_button.py +14 -17
  55. flet/controls/cupertino/cupertino_switch.py +30 -41
  56. flet/controls/cupertino/cupertino_textfield.py +14 -18
  57. flet/controls/cupertino/cupertino_timer_picker.py +11 -8
  58. flet/controls/exceptions.py +5 -5
  59. flet/controls/icon_data.py +2 -2
  60. flet/controls/keys.py +2 -1
  61. flet/controls/layout_control.py +22 -27
  62. flet/controls/material/alert_dialog.py +44 -50
  63. flet/controls/material/app_bar.py +41 -45
  64. flet/controls/material/auto_complete.py +10 -8
  65. flet/controls/material/badge.py +32 -28
  66. flet/controls/material/banner.py +14 -14
  67. flet/controls/material/bottom_app_bar.py +7 -9
  68. flet/controls/material/bottom_sheet.py +10 -10
  69. flet/controls/material/button.py +2 -24
  70. flet/controls/material/card.py +10 -11
  71. flet/controls/material/checkbox.py +41 -49
  72. flet/controls/material/chip.py +44 -47
  73. flet/controls/material/circle_avatar.py +19 -22
  74. flet/controls/material/container.py +16 -123
  75. flet/controls/material/datatable.py +71 -95
  76. flet/controls/material/date_picker.py +13 -14
  77. flet/controls/material/date_range_picker.py +183 -0
  78. flet/controls/material/divider.py +24 -23
  79. flet/controls/material/dropdown.py +13 -13
  80. flet/controls/material/expansion_tile.py +5 -6
  81. flet/controls/material/filled_button.py +1 -1
  82. flet/controls/material/floating_action_button.py +2 -2
  83. flet/controls/material/form_field_control.py +64 -56
  84. flet/controls/material/icon_button.py +29 -65
  85. flet/controls/material/list_tile.py +25 -23
  86. flet/controls/material/menu_item_button.py +2 -2
  87. flet/controls/material/navigation_bar.py +3 -3
  88. flet/controls/material/navigation_rail.py +11 -11
  89. flet/controls/material/outlined_button.py +1 -1
  90. flet/controls/material/popup_menu_button.py +3 -3
  91. flet/controls/material/progress_bar.py +15 -22
  92. flet/controls/material/progress_ring.py +8 -8
  93. flet/controls/material/radio.py +3 -8
  94. flet/controls/material/range_slider.py +1 -1
  95. flet/controls/material/search_bar.py +15 -16
  96. flet/controls/material/segmented_button.py +4 -4
  97. flet/controls/material/selection_area.py +4 -3
  98. flet/controls/material/slider.py +16 -16
  99. flet/controls/material/snack_bar.py +33 -32
  100. flet/controls/material/submenu_button.py +9 -9
  101. flet/controls/material/switch.py +13 -13
  102. flet/controls/material/tabs.py +77 -78
  103. flet/controls/material/text_button.py +2 -2
  104. flet/controls/material/textfield.py +4 -6
  105. flet/controls/material/tooltip.py +16 -15
  106. flet/controls/material/vertical_divider.py +10 -10
  107. flet/controls/page.py +4 -4
  108. flet/controls/painting.py +2 -2
  109. flet/controls/scrollable_control.py +1 -1
  110. flet/controls/services/file_picker.py +7 -7
  111. flet/controls/services/haptic_feedback.py +1 -1
  112. flet/controls/services/shake_detector.py +1 -1
  113. flet/controls/services/storage_paths.py +3 -3
  114. flet/controls/text_style.py +1 -1
  115. flet/controls/theme.py +611 -609
  116. flet/controls/types.py +11 -11
  117. flet/testing/finder.py +2 -0
  118. flet/testing/flet_test_app.py +6 -4
  119. flet/version.py +1 -1
  120. {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5774.dist-info}/METADATA +5 -5
  121. flet-0.70.0.dev5774.dist-info/RECORD +239 -0
  122. flet-0.70.0.dev5623.dist-info/RECORD +0 -238
  123. {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5774.dist-info}/WHEEL +0 -0
  124. {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5774.dist-info}/entry_points.txt +0 -0
  125. {flet-0.70.0.dev5623.dist-info → flet-0.70.0.dev5774.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.DividerTheme.space] is used.
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.DividerTheme.thickness] is used.
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.DividerTheme.color] is used.
45
- If that's is also `None`, defaults to [`Theme.divider_color`][flet.Theme.divider_color].
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.DividerTheme.leading_indent] is used.
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.DividerTheme.trailing_indent] is used.
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.View] controls.
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.AppBar] control.
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.UrlTarget.SELF]
699
- for the same browser tab, [`UrlTarget.BLANK`][flet.UrlTarget.BLANK]
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`][flet.PaintLinearGradient.color_stops] is not `None`,
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`][flet.PaintLinearGradient.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
@@ -141,7 +141,7 @@ class ScrollableControl(Control):
141
141
  no animation.
142
142
 
143
143
  `curve` configures animation curve. Property value is
144
- [`AnimationCurve`][flet.AnimationCurve]
144
+ [`AnimationCurve`][flet.]
145
145
  enum.
146
146
 
147
147
  Defaults to `AnimationCurve.EASE`.
@@ -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.FilePicker].
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`][flet.FilePickerFileType.VIDEO] and
33
- [`IMAGE`][flet.FilePickerFileType.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()`][flet.FilePicker.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.FilePickerUploadFile], where
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.FilePickerFileType.CUSTOM].
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.FilePickerFileType.CUSTOM].
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.Page.services] list before it can be used.
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.Page.services] list before it can be used.
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()`][flet.StoragePaths.get_application_support_directory]
43
- - [`get_application_cache_directory()`][flet.StoragePaths.get_application_cache_directory]
44
- - [`get_external_storage_directory()`][flet.StoragePaths.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.
@@ -139,7 +139,7 @@ class TextStyle:
139
139
  """
140
140
  The typeface thickness to use when painting the text (e.g., bold).
141
141
 
142
- Defaults to [`FontWeight.NORMAL`][flet.FontWeight.NORMAL].
142
+ Defaults to [`FontWeight.NORMAL`][flet.].
143
143
  """
144
144
 
145
145
  italic: bool = False