flet 0.70.0.dev5595__py3-none-any.whl → 0.70.0.dev5623__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.

@@ -10,6 +10,7 @@ from flet.controls.control_state import ControlStateValue
10
10
  from flet.controls.layout_control import LayoutControl
11
11
  from flet.controls.material.form_field_control import InputBorder
12
12
  from flet.controls.material.icons import Icons
13
+ from flet.controls.material.menu_bar import MenuStyle
13
14
  from flet.controls.material.textfield import InputFilter, TextCapitalization
14
15
  from flet.controls.padding import PaddingValue
15
16
  from flet.controls.text_style import TextStyle
@@ -148,6 +149,13 @@ class Dropdown(LayoutControl):
148
149
  input textfield width.
149
150
  """
150
151
 
152
+ menu_style: Optional[MenuStyle] = None
153
+ """
154
+ The menu style that defines the visual attributes of the menu.
155
+
156
+ The default width of the menu is set to the width of the text field.
157
+ """
158
+
151
159
  expanded_insets: Optional[PaddingValue] = None
152
160
  """
153
161
  The insets for the expanded dropdown menu.
@@ -30,6 +30,14 @@ class ListTileTitleAlignment(Enum):
30
30
 
31
31
 
32
32
  class ListTileStyle(Enum):
33
+ """
34
+ Defines the title font used for ListTile descendants of a ListTileTheme.
35
+
36
+ List tiles that appear in a Drawer use the theme's TextTheme.body_large text style,
37
+ which is a little smaller than the theme's TextTheme.title_medium text style, which
38
+ is used by default.
39
+ """
40
+
33
41
  LIST = "list"
34
42
  DRAWER = "drawer"
35
43
 
@@ -62,7 +70,7 @@ class ListTile(LayoutControl, AdaptiveControl):
62
70
  Typically a [`Text`][flet.Text] control.
63
71
  """
64
72
 
65
- is_three_line: bool = False
73
+ is_three_line: Optional[bool] = None
66
74
  """
67
75
  Whether this list tile is intended to display three lines of text.
68
76
 
@@ -100,15 +108,14 @@ class ListTile(LayoutControl, AdaptiveControl):
100
108
  The list tile's background color.
101
109
  """
102
110
 
103
- bgcolor_activated: Optional[str] = None
111
+ splash_color: Optional[ColorValue] = None
104
112
  """
105
- The list tile's splash color after the
106
- being was tapped.
113
+ The list tile's splash color after the control has been tapped.
107
114
  """
108
115
 
109
116
  hover_color: Optional[ColorValue] = None
110
117
  """
111
- The tile's color when hovered.
118
+ The tile's color when hovered. Only shows if `toggle_inputs` is True.
112
119
  """
113
120
 
114
121
  selected: bool = False
@@ -117,7 +124,7 @@ class ListTile(LayoutControl, AdaptiveControl):
117
124
  By default the selected color is the theme's primary color.
118
125
  """
119
126
 
120
- dense: bool = False
127
+ dense: Optional[bool] = None
121
128
  """
122
129
  Whether this list tile is part of a vertically dense list.
123
130
 
@@ -156,26 +163,26 @@ class ListTile(LayoutControl, AdaptiveControl):
156
163
  Defaults to `ListTileStyle.LIST`.
157
164
  """
158
165
 
159
- enable_feedback: bool = True
166
+ enable_feedback: Optional[bool] = None
160
167
  """
161
168
  Whether detected gestures should provide acoustic and/or haptic feedback.
162
169
  On Android, for example, setting this to `True` produce a click sound and a
163
170
  long-press will produce a short vibration.
164
171
  """
165
172
 
166
- horizontal_spacing: Number = 16.0
173
+ horizontal_spacing: Optional[Number] = None
167
174
  """
168
175
  The horizontal gap between the `title` and the
169
176
  [`leading`][flet.ListTile.leading] and [`trailing`][flet.ListTile.trailing]
170
177
  controls.
171
178
  """
172
179
 
173
- min_leading_width: Number = 40.0
180
+ min_leading_width: Optional[Number] = None
174
181
  """
175
182
  The minimum width allocated for the `leading` control.
176
183
  """
177
184
 
178
- min_vertical_padding: Number = 4.0
185
+ min_vertical_padding: Optional[Number] = None
179
186
  """
180
187
  The minimum padding on the top and bottom of the `title` and `subtitle` controls.
181
188
  """
flet/controls/theme.py CHANGED
@@ -1127,32 +1127,33 @@ class FloatingActionButtonTheme:
1127
1127
 
1128
1128
  extended_padding: Optional[PaddingValue] = None
1129
1129
  """
1130
- The padding for an extended [`FloatingActionButton`][flet.FloatingActionButton]'s
1131
- content.
1130
+ The padding for a [`FloatingActionButton`][flet.FloatingActionButton]'s
1131
+ that has both icon and content.
1132
1132
  """
1133
1133
 
1134
- extended_text_style: Optional[TextStyle] = None
1134
+ text_style: Optional[TextStyle] = None
1135
1135
  """
1136
- The text style for an extended
1137
- [`FloatingActionButton`][flet.FloatingActionButton].
1136
+ Text style merged into default text style of
1137
+ [`FloatingActionButton.label`][flet.FloatingActionButton.label].
1138
1138
  """
1139
1139
 
1140
- extended_icon_label_spacing: Optional[Number] = None
1140
+ icon_label_spacing: Optional[Number] = None
1141
1141
  """
1142
- The spacing between the icon and the label for an extended
1142
+ The spacing between the icon and the label for
1143
1143
  [`FloatingActionButton`][flet.FloatingActionButton].
1144
1144
  """
1145
1145
 
1146
1146
  extended_size_constraints: Optional[BoxConstraints] = None
1147
1147
  """
1148
1148
  Overrides the default size constraints of
1149
- extended [`FloatingActionButton`][flet.FloatingActionButton].
1149
+ [`FloatingActionButton`][flet.FloatingActionButton] that has both icon and content.
1150
1150
  """
1151
1151
 
1152
1152
  size_constraints: Optional[BoxConstraints] = None
1153
1153
  """
1154
1154
  Overrides the default size constraints of
1155
- [`FloatingActionButton`][flet.FloatingActionButton].
1155
+ [`FloatingActionButton`][flet.FloatingActionButton] that has either icon or content
1156
+ and is not a mini button.
1156
1157
  """
1157
1158
 
1158
1159
  # large_size_constraints: Optional[BoxConstraints] = None
@@ -2225,18 +2226,13 @@ class TimePickerTheme:
2225
2226
  @dataclass
2226
2227
  class DropdownTheme:
2227
2228
  """
2228
- Overrides the default values of visual properties for descendant
2229
- [`Dropdown`][flet.Dropdown] controls.
2229
+ Customizes the appearance of [`Dropdown`][flet.Dropdown] across the app.
2230
2230
  """
2231
2231
 
2232
2232
  menu_style: Optional[MenuStyle] = None
2233
2233
  """
2234
- The menu style for descendant [`Dropdown`][flet.Dropdown] controls. If `elevation`,
2235
- `bgcolor` and/or `menu_width` are provided for the [`MenuStyle`][flet.MenuStyle]
2236
- then they will override the default values for
2237
- [`DropdownMenu.elevation`][flet.Dropdown.elevation],
2238
- [`DropdownMenu.bgcolor`][flet.Dropdown.bgcolor] and
2239
- [`DropdownMenu.menu_width`][flet.Dropdown.menu_width].
2234
+ Overrides the default value for
2235
+ [`Dropdown.menu_style`][flet.Dropdown.menu_style].
2240
2236
  """
2241
2237
 
2242
2238
  text_style: Optional[TextStyle] = None
@@ -2355,7 +2351,7 @@ class ListTileTheme:
2355
2351
  [`ListTile.mouse_cursor`][flet.ListTile.mouse_cursor].
2356
2352
  """
2357
2353
 
2358
- min_tile_height: Optional[Number] = None
2354
+ min_height: Optional[Number] = None
2359
2355
  """
2360
2356
  Overrides the default value for
2361
2357
  [`ListTile.min_height`][flet.ListTile.min_height].
@@ -3322,8 +3318,16 @@ class DataTableTheme:
3322
3318
 
3323
3319
  @dataclass
3324
3320
  class Theme:
3321
+ """
3322
+ Customizes the overall appearance of the application.
3323
+ """
3324
+
3325
3325
  color_scheme_seed: Optional[ColorValue] = None
3326
- primary_swatch: Optional[ColorValue] = None
3326
+ """
3327
+ Overrides the default color scheme seed used to generate
3328
+ [`ColorScheme`][flet.ColorScheme]. The default color is blue.
3329
+ """
3330
+
3327
3331
  font_family: Optional[str] = None
3328
3332
  use_material3: Optional[bool] = None
3329
3333
  appbar_theme: Optional[AppBarTheme] = None
@@ -3334,21 +3338,81 @@ class Theme:
3334
3338
  card_theme: Optional[CardTheme] = None
3335
3339
  checkbox_theme: Optional[CheckboxTheme] = None
3336
3340
  chip_theme: Optional[ChipTheme] = None
3341
+ """
3342
+ Customizes the appearance of [`Chip`][flet.Chip] across the app.
3343
+ """
3344
+
3337
3345
  color_scheme: Optional[ColorScheme] = None
3346
+ """
3347
+ Overrides the default [`ColorScheme`][flet.ColorScheme] used for the application.
3348
+ """
3349
+
3338
3350
  data_table_theme: Optional[DataTableTheme] = None
3339
3351
  date_picker_theme: Optional[DatePickerTheme] = None
3340
3352
  dialog_theme: Optional[DialogTheme] = None
3353
+ """
3354
+ Customizes the appearance of [`AlertDialog`][flet.AlertDialog] across the app.
3355
+ """
3356
+
3341
3357
  divider_theme: Optional[DividerTheme] = None
3358
+ """
3359
+ Defines the visual properties of [`Divider`][flet.Divider],
3360
+ [`VerticalDivider`][flet.VerticalDivider], dividers between
3361
+ [`ListTile`][flet.ListTile]s, and dividers between rows in
3362
+ [`DataTable`][flet.DataTable].
3363
+ """
3364
+
3342
3365
  dropdown_theme: Optional[DropdownTheme] = None
3366
+ """
3367
+ Customizes the appearance of [`Dropdown`][flet.Dropdown] across the app.
3368
+ """
3369
+
3343
3370
  button_theme: Optional[ButtonTheme] = None
3371
+ """
3372
+ Customizes the appearance of [`Button`][flet.Button] across the app.
3373
+ """
3374
+
3344
3375
  outlined_button_theme: Optional[OutlinedButtonTheme] = None
3376
+ """
3377
+ Customizes the appearance of [`OutlinedButton`][flet.OutlinedButton] across the app.
3378
+ """
3379
+
3345
3380
  text_button_theme: Optional[TextButtonTheme] = None
3381
+ """
3382
+ Customizes the appearance of [`TextButton`][flet.TextButton] across the app.
3383
+ """
3384
+
3346
3385
  filled_button_theme: Optional[FilledButtonTheme] = None
3386
+ """
3387
+ Customizes the appearance of [`FilledButton`][flet.FilledButton] across the app.
3388
+ """
3389
+
3347
3390
  icon_button_theme: Optional[IconButtonTheme] = None
3391
+ """
3392
+ Customizes the appearance of [`IconButton`][flet.IconButton] across the app.
3393
+ """
3394
+
3348
3395
  expansion_tile_theme: Optional[ExpansionTileTheme] = None
3396
+ """
3397
+ Customizes the appearance of [`ExpansionTile`][flet.ExpansionTile] across the app.
3398
+ """
3399
+
3349
3400
  floating_action_button_theme: Optional[FloatingActionButtonTheme] = None
3401
+ """
3402
+ Customizes the appearance of [`FloatingActionButton`][flet.FloatingActionButton]
3403
+ across the app.
3404
+ """
3405
+
3350
3406
  icon_theme: Optional[IconTheme] = None
3407
+ """
3408
+ Customizes the appearance of [`Icon`][flet.Icon] across the app.
3409
+ """
3410
+
3351
3411
  list_tile_theme: Optional[ListTileTheme] = None
3412
+ """
3413
+ Customizes the appearance of [`ListTile`][flet.ListTile] across the app.
3414
+ """
3415
+
3352
3416
  navigation_bar_theme: Optional[NavigationBarTheme] = None
3353
3417
  navigation_drawer_theme: Optional[NavigationDrawerTheme] = None
3354
3418
  navigation_rail_theme: Optional[NavigationRailTheme] = None
@@ -3363,13 +3427,8 @@ class Theme:
3363
3427
  canvas_color: Optional[ColorValue] = None
3364
3428
  scaffold_bgcolor: Optional[ColorValue] = None
3365
3429
  card_bgcolor: Optional[ColorValue] = None
3366
- divider_color: Optional[ColorValue] = None
3367
3430
  hint_color: Optional[ColorValue] = None
3368
- shadow_color: Optional[ColorValue] = None
3369
3431
  secondary_header_color: Optional[ColorValue] = None
3370
- primary_color: Optional[ColorValue] = None
3371
- primary_color_dark: Optional[ColorValue] = None
3372
- primary_color_light: Optional[ColorValue] = None
3373
3432
  primary_text_theme: Optional[TextTheme] = None
3374
3433
  progress_indicator_theme: Optional[ProgressIndicatorTheme] = None
3375
3434
  radio_theme: Optional[RadioTheme] = None
flet/version.py CHANGED
@@ -10,7 +10,7 @@ from flet.utils import is_mobile, is_windows, which
10
10
  DEFAULT_VERSION = "0.1.0"
11
11
 
12
12
  # will be replaced by CI
13
- version = "0.70.0.dev5595"
13
+ version = "0.70.0.dev5623"
14
14
 
15
15
 
16
16
  def update_version():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet
3
- Version: 0.70.0.dev5595
3
+ Version: 0.70.0.dev5623
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
@@ -9,10 +9,10 @@ Project-URL: Repository, https://github.com/flet-dev/flet
9
9
  Project-URL: Documentation, https://docs.flet.dev/
10
10
  Requires-Python: >=3.10
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: flet-cli==0.70.0.dev5595; extra == "cli"
13
- Requires-Dist: flet-desktop==0.70.0.dev5595; extra == "desktop" and (platform_system == "Darwin" or platform_system == "Windows")
14
- Requires-Dist: flet-desktop-light==0.70.0.dev5595; platform_system == "Linux" and (extra == "all" or extra == "desktop")
15
- Requires-Dist: flet-web==0.70.0.dev5595; extra == "web"
12
+ Requires-Dist: flet-cli==0.70.0.dev5623; extra == "cli"
13
+ Requires-Dist: flet-desktop==0.70.0.dev5623; extra == "desktop" and (platform_system == "Darwin" or platform_system == "Windows")
14
+ Requires-Dist: flet-desktop-light==0.70.0.dev5623; platform_system == "Linux" and (extra == "all" or extra == "desktop")
15
+ Requires-Dist: flet-web==0.70.0.dev5623; extra == "web"
16
16
  Requires-Dist: oauthlib>=3.2.2; platform_system != "Pyodide"
17
17
  Requires-Dist: httpx>=0.28.1; platform_system != "Pyodide"
18
18
  Requires-Dist: repath>=0.9.0
@@ -1,7 +1,7 @@
1
1
  flet/__init__.py,sha256=uBodVTbviVmVvNinj-lDP7JGgAHmioVDt-NW1GGl3gQ,24713
2
2
  flet/app.py,sha256=HSws0Zm4ZO0-Hp2P9h7xirCVnRkKCVXhuekyAXT_9Fo,11883
3
3
  flet/cli.py,sha256=IUM25fY_sqMtl0hlQGhlMQaBb1oNyO0VZeeBgRodhuA,204
4
- flet/version.py,sha256=csGkSj5XaAHz_awr86PdAC04EosfCk2fmIBM-g8aDdw,2512
4
+ flet/version.py,sha256=XctXJy9IzF0FWdOZTuEOP1YHo4YdgvrDdD2PSMrUSAA,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
@@ -55,7 +55,7 @@ flet/controls/scrollable_control.py,sha256=iefmTmNxezZ534Y5jpAdaRWLTMwg3H-0iSVC3
55
55
  flet/controls/session_storage.py,sha256=UzDpebR1ddDW9seghplws9zgirlvQjRgAnskVDcrbas,561
56
56
  flet/controls/template_route.py,sha256=qP5KvFY5gazw-G9Q9bcoADlWAh-MJ_9wsIyIxjElkaE,662
57
57
  flet/controls/text_style.py,sha256=PRfUkAeIgscNVlUsHpQeygr1a2ZDdd608bTwJ12cUq0,9403
58
- flet/controls/theme.py,sha256=GybSVrkexs0A_Q373RN4YADSJcXbxtTZWrR8D7vhsu0,105717
58
+ flet/controls/theme.py,sha256=rNjfMsNfgSTfwB39envBBasWc4T06jEhyFGAv1W7f5E,106917
59
59
  flet/controls/transform.py,sha256=gZQGM5nhfiapvm25uxvswbTWu0qQM3oBGRVxSTDhGYY,2782
60
60
  flet/controls/types.py,sha256=QD-WNx4wkVbmD5B1PGQme6hrw6RYmYDRVh3L3F2_pk0,25727
61
61
  flet/controls/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -151,7 +151,7 @@ flet/controls/material/container.py,sha256=33Oc7-9n2gEeUmq84cqHBGRcSsLYUY1_LtAil
151
151
  flet/controls/material/datatable.py,sha256=phbvVzuny7hf6N1luLObFJ2uoyzc3FgELxHu_t9B6AI,18329
152
152
  flet/controls/material/date_picker.py,sha256=hwHGh8fy_c1Ow_CsGfM-y1buW0Bc4oYDIiuEBbwapuY,5705
153
153
  flet/controls/material/divider.py,sha256=1gNiqJcV4OcZ9oRdwfE2S0bJ6HPxhUNUHZ-sUMpj9b8,2535
154
- flet/controls/material/dropdown.py,sha256=dHKXFg3TZvcwmB5lyUngG9ps8GYnMhHteib1PMUyYVU,9716
154
+ flet/controls/material/dropdown.py,sha256=BWUH4ZXPl3KZyQoH49n5bFsC5-c_M41rWn8Gb_9J1Yo,9971
155
155
  flet/controls/material/dropdownm2.py,sha256=JGie5s9jReAbhGWQkkoBMY1S8iBgdEvqqhhL7JMIoJg,5452
156
156
  flet/controls/material/elevated_button.py,sha256=AjrLkxn1ViwGE7ms8aNlNTgaR1-qIFhN8aU254Hx9Vc,274
157
157
  flet/controls/material/expansion_panel.py,sha256=nk7pforJciuaz5i2Sqmlmk7xksqR2ah425wzIseO-rM,3406
@@ -162,7 +162,7 @@ flet/controls/material/floating_action_button.py,sha256=ZfhRXI9leRRbIKJJSd1NvewP
162
162
  flet/controls/material/form_field_control.py,sha256=2M_v__aC2HfGOTuarEWWYEtzblgKAIdeQDTLfU7lj8g,8188
163
163
  flet/controls/material/icon_button.py,sha256=wrbh7vp_8H_12qtmi-dIknsUHVvmxswVWkXNnMWKFtQ,8597
164
164
  flet/controls/material/icons.py,sha256=piwc7LmopX6inmzdT4G0wpuvP6NZWGJQdG_KXCPPhEs,287248
165
- flet/controls/material/list_tile.py,sha256=VLVHkO5HWJ1BCPc45QOkpJpXDLcowGdsvFWvQaHGHoo,7677
165
+ flet/controls/material/list_tile.py,sha256=ojRDmS-yjTz9Sskmx30bnk_babm8N5IzS_Ya9W4rP40,8075
166
166
  flet/controls/material/menu_bar.py,sha256=P0bn4HDtNgrfe0GzWbEH4A-oiGA-n4dFoeyvUle3HeY,2168
167
167
  flet/controls/material/menu_item_button.py,sha256=XMZwXHaBh7X68DGZu7ueyg3tEs_Wf83LjyPdun_SD_g,2531
168
168
  flet/controls/material/navigation_bar.py,sha256=tSdWV2ETM8w9k3pctInb2L0uEmOX9fxZKPa0uI3ae9E,5052
@@ -231,8 +231,8 @@ flet/utils/platform_utils.py,sha256=U4cqV3EPi5QNYjbhfZmtk41-KMtI_P7KvVdnZzMOgJA,
231
231
  flet/utils/slugify.py,sha256=e-lsoDc2_dk5jQnySaHCU83AA4O6mguEgCEdk2smW2Y,466
232
232
  flet/utils/strings.py,sha256=R63_i7PdSAStCDPJ-O_WHBt3H02JQ14GSbnjLIpPTUc,178
233
233
  flet/utils/vector.py,sha256=pYZzjldBWCZbSeSkZ8VmujwcZC7VBWk1NLBPA-2th3U,3207
234
- flet-0.70.0.dev5595.dist-info/METADATA,sha256=1V3hdjvoLZYiH6v7sC8590XwllYgvyUogEgKN2Yxves,6220
235
- flet-0.70.0.dev5595.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
236
- flet-0.70.0.dev5595.dist-info/entry_points.txt,sha256=mbBhHNUnLHiDqR36WeJrfLJU0Y0y087-M4wagQmaQ_Y,39
237
- flet-0.70.0.dev5595.dist-info/top_level.txt,sha256=HbLrSnWJX2jZOEZAI14cGzW8Q5BbOGTtE-7knD5FDh0,5
238
- flet-0.70.0.dev5595.dist-info/RECORD,,
234
+ flet-0.70.0.dev5623.dist-info/METADATA,sha256=X3N4XC802awpy_-IvadI6YXrktFXsjtw7rorte4fZ7A,6220
235
+ flet-0.70.0.dev5623.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
236
+ flet-0.70.0.dev5623.dist-info/entry_points.txt,sha256=mbBhHNUnLHiDqR36WeJrfLJU0Y0y087-M4wagQmaQ_Y,39
237
+ flet-0.70.0.dev5623.dist-info/top_level.txt,sha256=HbLrSnWJX2jZOEZAI14cGzW8Q5BbOGTtE-7knD5FDh0,5
238
+ flet-0.70.0.dev5623.dist-info/RECORD,,