flet 0.70.0.dev6516__py3-none-any.whl → 0.70.0.dev6519__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.

@@ -86,6 +86,16 @@ class Animation:
86
86
 
87
87
  @dataclass
88
88
  class AnimationStyle:
89
+ """
90
+ Used to override the default parameters of an animation.
91
+
92
+ Note:
93
+ If [`duration`][(c).] and [`reverse_duration`][(c).] are set to
94
+ [`Duration()`][flet.Duration], the corresponding animation will be disabled.
95
+ See [`no_animation()`][(c).no_animation] method for a convenient way to create
96
+ such an instance.
97
+ """
98
+
89
99
  duration: Optional[DurationValue] = None
90
100
  """
91
101
  The duration of the animation.
@@ -106,6 +116,16 @@ class AnimationStyle:
106
116
  The curve to use for the reverse animation.
107
117
  """
108
118
 
119
+ @staticmethod
120
+ def no_animation() -> "AnimationStyle":
121
+ """
122
+ Creates an instance of `AnimationStyle` with no animation.
123
+ """
124
+ return AnimationStyle(
125
+ duration=Duration(),
126
+ reverse_duration=Duration(),
127
+ )
128
+
109
129
  def copy(
110
130
  self,
111
131
  *,
@@ -116,6 +116,7 @@ class BaseControl:
116
116
  """
117
117
  Arbitrary data of any type.
118
118
  """
119
+
119
120
  key: Optional[KeyValue] = None
120
121
 
121
122
  ref: InitVar[Optional[Ref["BaseControl"]]] = None
@@ -124,6 +125,9 @@ class BaseControl:
124
125
  _internals: dict = field(
125
126
  default_factory=dict, init=False, repr=False, compare=False
126
127
  )
128
+ """
129
+ A dictionary for storing internal control configuration.
130
+ """
127
131
 
128
132
  def __post_init__(self, ref: Optional[Ref[Any]]):
129
133
  self.__class__.__hash__ = BaseControl.__hash__
@@ -29,7 +29,7 @@ class Image(LayoutControl):
29
29
 
30
30
  ```python
31
31
  ft.Image(
32
- src_base64="iVBORw0KGgoAAAANSUhEUgAAABkAAAAgCAYAAADnnNMGAAAACXBIWXMAAAORAAADkQFnq8zdAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAA6dJREFUSImllltoHFUYx3/fzOzm0lt23ZrQ1AQbtBehNpvQohgkBYVo410RwQctNE3Sh0IfiiBoIAjqi6TYrKnFy4O3oiiRavDJFi3mXomIBmOxNZe63ay52GR3Zj4f2sTEzmx3m//TYf7/c35zvgPnO6KqrESXqpq3muocAikv6m+/zytj3ejik1VN21G31YA9CgJ6xC+bMyQZPVCuarciPAMYC99V6Vw5pLbFSibHmlVoRVj9P3cmPBM8tSJI/M6mzabpfoAQ9fIF7WK4bd5vvuFnLGgy2vi0abg94A0AcJGvMq3hDxGRyar9r4F+iLAm0yIiRk8m37tctS1WsrIhhrI30+Srmg+J87OXUf3lWGS1q89dC6ltsSanxk4Aj2QBABii96300g87P/rtlrWr8l+vyDMfdlXSyyEikqxsiOUAQJCBhfHdXRfCq1LSsSlcWG+KBAGStvvrMkgiuv8lUc2mREukPwLUfHG+uTQv8Eown7VL3XlbBxYhf1c17hbVF3MDwA9bts280TnaU1YYqPby07aeFlUlHt27wSQ4CLo+F8AvoTCvHmyKF+ZbEb/M77P2LgvAwmrTHAHflN3KZxVbMC2jMFNOpgPnrMSOhvvFkMezXdwV4ePbtvHtxnJAMQ0j4JtVnO+eLb5oiSlt5HDbv7t1O90lpYCCCKbhfzW5kAIwUAazR0BlfII8Ow0I6uoVmI9MyAMwbMs8CExmDbk4zgu931MyO4OI4KrYflkRjOoTI+uM9d1vjotwKPu9QMk/sxzuO8POiVFcdZ1M2YBVsMEAKOqLvaPIe7mACuw0z/80SMH58SMplxlfiDhVi7dw2pltRhjKBQTQdrSja2KKTfE551NHuaZ0QVPvWYQUn31/Vm2nDvgjF4grVJx6suSvrvrSJ/6cSW2Oz9mf264uNrB806xZ1k/CZ49dUKgDEtlCROX2hfHpx8pGuuo3PpqYulw8fjndOp1yhgtNKRevJ1FyR2Ola+jXAjdnwTkZ6o896GdWdxDw7IxFg+0DpmXchTKSBWQnIuJn9u4j7dt+13UfHXEkXQOcuQ4kMhVtqsgUyPiQiPQfHw1NB2sRjmXKuTg1NwwBYLhtPtQX26eqTwGXPDOqvmcC4Hnwfrrad94GrVsOYTqUTkQY+iTlNe/6O1miSP/x0VB/+wMIDwHn/vtV1iQC4Xv95uUEWVCoL9Y5Z+gdovoyMHUFJHv88jmVy0vTuw7cZNv2YaA61Bfb7ZX5F8SaUv2xwZevAAAAAElFTkSuQmCC",
32
+ src="https://flet.dev/img/logo.svg",
33
33
  width=100,
34
34
  height=100,
35
35
  )
@@ -21,12 +21,12 @@ class CupertinoSlidingSegmentedButton(LayoutControl):
21
21
 
22
22
  ```python
23
23
  ft.CupertinoSlidingSegmentedButton(
24
+ selected_index=1,
24
25
  controls=[
25
26
  ft.Text("One"),
26
27
  ft.Text("Two"),
27
28
  ft.Text("Three"),
28
29
  ],
29
- selected_index=1,
30
30
  )
31
31
  ```
32
32
  """
@@ -39,8 +39,7 @@ class CupertinoSlidingSegmentedButton(LayoutControl):
39
39
  Must contain at least two visible Controls.
40
40
 
41
41
  Raises:
42
- ValueError: If [`controls`][(c).] does not contain at least two
43
- visible controls.
42
+ ValueError: If it does not contain at least two visible controls.
44
43
  """
45
44
 
46
45
  selected_index: int = 0
@@ -48,8 +47,7 @@ class CupertinoSlidingSegmentedButton(LayoutControl):
48
47
  The index (starting from 0) of the selected segment in the [`controls`][(c).] list.
49
48
 
50
49
  Raises:
51
- IndexError: If [`selected_index`][(c).] is out of range relative to the
52
- visible controls.
50
+ IndexError: If it is out of range relative to the visible controls.
53
51
  """
54
52
 
55
53
  bgcolor: ColorValue = CupertinoColors.TERTIARY_SYSTEM_FILL
@@ -149,8 +149,8 @@ class ExpansionPanelList(LayoutControl):
149
149
  """
150
150
  Called when an item of [`controls`][(c).] is expanded or collapsed.
151
151
 
152
- The event's [`data`][flet.Event.], contains the index of the
153
- child panel (in [`controls`][(c).]) which triggered this event.
152
+ The [`data`][flet.Event.] property of the event handler argument contains the
153
+ index of the child panel (in [`controls`][(c).]) which triggered this event.
154
154
  """
155
155
 
156
156
  def before_update(self):
@@ -3,6 +3,7 @@ from typing import Optional
3
3
 
4
4
  from flet.controls.adaptive_control import AdaptiveControl
5
5
  from flet.controls.alignment import Alignment
6
+ from flet.controls.animation import AnimationStyle
6
7
  from flet.controls.base_control import control
7
8
  from flet.controls.buttons import OutlinedBorder
8
9
  from flet.controls.control import Control
@@ -23,9 +24,29 @@ __all__ = ["ExpansionTile", "TileAffinity"]
23
24
 
24
25
 
25
26
  class TileAffinity(Enum):
27
+ """
28
+ Where to place a control in controls that use [`ListTile`][flet.] to position a
29
+ control next to a label.
30
+ """
31
+
26
32
  LEADING = "leading"
33
+ """
34
+ Positions the control on the leading edge, and the secondary control, if
35
+ any, on the trailing edge.
36
+ """
37
+
27
38
  TRAILING = "trailing"
39
+ """
40
+ Positions the control on the trailing edge, and the secondary control, if
41
+ any, on the leading edge.
42
+ """
43
+
28
44
  PLATFORM = "platform"
45
+ """
46
+ Positions the control relative to the text in the fashion that is typical
47
+ for the current platform, and place the secondary control on the opposite
48
+ side.
49
+ """
29
50
 
30
51
 
31
52
  @control("ExpansionTile")
@@ -39,145 +60,212 @@ class ExpansionTile(LayoutControl, AdaptiveControl):
39
60
  width=400,
40
61
  title="Account",
41
62
  subtitle="Manage profile and security",
63
+ expanded=True,
42
64
  controls=[
43
65
  ft.ListTile(title=ft.Text("Profile")),
44
66
  ft.ListTile(title=ft.Text("Security")),
45
67
  ],
46
- initially_expanded=True,
47
68
  )
48
69
  ```
49
70
  """
50
71
 
51
72
  title: StrOrControl
52
73
  """
53
- A `Control` to display as primary content of the tile.
74
+ A Control to display as primary content of this tile.
54
75
 
55
76
  Typically a [`Text`][flet.] control.
56
77
 
57
78
  Raises:
58
- ValueError: If [`title`][(c).] is neither a string nor a visible Control.
79
+ ValueError: If it is neither a string nor a visible Control.
59
80
  """
60
81
 
61
82
  controls: Optional[list[Control]] = None
62
83
  """
63
- The controls to be displayed when the tile expands.
84
+ The controls to be displayed when this tile [expands][(c).expanded].
64
85
 
65
86
  Typically a list of [`ListTile`][flet.] controls.
66
87
  """
67
88
 
68
89
  subtitle: Optional[StrOrControl] = None
69
90
  """
70
- Additional content displayed below the title.
91
+ Additional content displayed below the [`title`][(c).].
71
92
 
72
93
  Typically a [`Text`][flet.] control.
73
94
  """
74
95
 
75
96
  leading: Optional[IconDataOrControl] = None
76
97
  """
77
- A `Control` to display before the title.
98
+ A Control to display before the [`title`][(c).].
99
+
100
+ Typically a [`CircleAvatar`][flet.] control.
101
+
102
+ Depending on the value of [`affinity`][(c).], this control
103
+ may replace the rotating expansion arrow icon.
78
104
  """
79
105
 
80
106
  trailing: Optional[IconDataOrControl] = None
81
107
  """
82
- A `Control` to display after the title.
108
+ A Control to display after the [`title`][(c).].
83
109
 
84
110
  Typically an [`Icon`][flet.] control.
111
+
112
+ Depending on the value of [`affinity`][(c).], this control
113
+ may replace the rotating expansion arrow icon.
85
114
  """
86
115
 
87
116
  controls_padding: Optional[PaddingValue] = None
88
117
  """
89
- Defines the padding around the `controls`.
118
+ Defines the padding around the [`controls`][(c).].
119
+
120
+ If `None`, [`ExpansionTileTheme.controls_padding`][flet.] is used;
121
+ if that is also `None`, then defaults to `Padding.all(0)`.
90
122
  """
91
123
 
92
124
  tile_padding: Optional[PaddingValue] = None
93
125
  """
94
- Defines the tile's padding. Default value is `Padding.symmetric(horizontal=16.0)`.
126
+ Defines the tile's padding.
127
+
128
+ Analogous to [`ListTile.content_padding`][flet.], this property defines the
129
+ insets for the [`leading`][(c).], [`title`][(c).], [`subtitle`][(c).] and
130
+ [`trailing`][(c).] controls. It does not inset the expanded
131
+ [`controls`][(c).] widgets.
132
+
133
+ If `None`, [`ExpansionTileTheme.tile_padding`][flet.] is used;
134
+ if that is also `None`, then defaults to `Padding.symmetric(horizontal=16.0)`.
95
135
  """
96
136
 
97
137
  affinity: Optional[TileAffinity] = None
98
138
  """
99
- Typically used to force the expansion arrow icon to the tile's `leading` or
100
- `trailing` edge.
139
+ Typically used to force the expansion arrow icon to the tile's [`leading`][(c).] or
140
+ [`trailing`][(c).] edge.
101
141
 
102
- Defaults to `TileAffinity.PLATFORM`.
142
+ If `None`, [`ListTileTheme.affinity`][flet.] is used;
143
+ if that is also `None`, then defaults to [`TileAffinity.TRAILING`][flet.]
144
+ (the expansion arrow icon appears on the tile's trailing edge).
103
145
  """
104
146
 
105
147
  expanded_alignment: Optional[Alignment] = None
106
148
  """
107
- Defines the alignment of children, which are arranged in a column when the tile is
108
- expanded.
149
+ Defines the alignment of [`controls`][(c).], which are arranged in a column when
150
+ the tile is expanded.
151
+
152
+ If `None`, [`ExpansionTileTheme.expanded_alignment`][flet.] is used;
153
+ if that is also `None`, then defaults to [`Alignment.CENTER`][flet.].
109
154
  """
110
155
 
111
156
  expanded_cross_axis_alignment: CrossAxisAlignment = CrossAxisAlignment.CENTER
112
157
  """
113
- Defines the alignment of each child control within `controls` when the tile is
114
- expanded.
158
+ Defines the alignment of each child control within [`controls`][(c).] when the
159
+ tile is expanded.
160
+
161
+ Raises:
162
+ ValueError: If set to [`CrossAxisAlignment.BASELINE`][flet.].
115
163
  """
116
164
 
117
165
  clip_behavior: Optional[ClipBehavior] = None
118
166
  """
119
- The content will be clipped (or not) according to this option.
167
+ Defines how the content of this tile is clipped.
120
168
 
121
- Defaults to `ClipBehavior.NONE`.
122
- """
169
+ If set and a custom collapsed or expanded shape is provided,
170
+ this value determines how this tile is clipped.
123
171
 
124
- initially_expanded: bool = False
125
- """
126
- A boolean value which defines whether the tile is initially expanded or collapsed.
172
+ If `None`, [`ExpansionTileTheme.clip_behavior`][flet.] is used;
173
+ if that is also `None`, then defaults to [`ClipBehavior.ANTI_ALIAS`][flet.].
127
174
  """
128
175
 
129
176
  maintain_state: bool = False
130
177
  """
131
- A boolean value which defines whether the state of the `controls` is maintained
132
- when the tile expands and collapses.
178
+ A boolean value which defines whether the state of the [`controls`][(c).] is
179
+ maintained when this tile [expands][(c).expanded] and collapses.
180
+
181
+ When `True`, the children are kept in the tree while the tile is collapsed.
182
+ When `False` (default), the [`controls`][(c).] are removed from the tree when
183
+ the tile is collapsed and recreated upon expansion.
133
184
  """
134
185
 
135
186
  text_color: Optional[ColorValue] = None
136
187
  """
137
- The color of the tile's titles when the sublist is expanded.
188
+ The color of this tile's titles when the sublist is [`expanded`][(c).].
189
+
190
+ If `None`, [`ExpansionTileTheme.text_color`][flet.] is used;
191
+ if that is also `None`, then defaults to [`body_large`][flet.TextTheme.]
192
+ of the [`Theme.text_theme`][flet.].
138
193
  """
139
194
 
140
195
  icon_color: Optional[ColorValue] = None
141
196
  """
142
- The icon color of tile's expansion arrow icon when the sublist is expanded.
197
+ The icon color of this tile's expansion arrow icon
198
+ when the sublist is [`expanded`][(c).].
199
+
200
+ If `None`, [`ExpansionTileTheme.icon_color`][flet.] is used;
201
+ if that is also `None`, then defaults to [`ColorScheme.primary`][flet.]
202
+ of the [`Page.theme`][flet.].
143
203
  """
144
204
 
145
205
  shape: Optional[OutlinedBorder] = None
146
206
  """
147
- The tile's border shape when the sublist is expanded.
207
+ The border shape of this tile when the sublist is [`expanded`][(c).].
208
+
209
+ If `None`, [`ExpansionTileTheme.shape`][flet.] is used;
210
+ if that is also `None`, then defaults to a [`Border`][flet.] with vertical sides
211
+ of color [`Theme.divider_color`][flet.].
148
212
  """
149
213
 
150
214
  bgcolor: Optional[ColorValue] = None
151
215
  """
152
- The color to display behind the sublist when expanded.
216
+ The color to display behind the sublist when [`expanded`][(c).].
217
+
218
+ If `None`, [`ExpansionTileTheme.bgcolor`][flet.] is used;
219
+ if that is also `None`, then defaults to [`Colors.TRANSPARENT`][flet.].
153
220
  """
154
221
 
155
222
  collapsed_bgcolor: Optional[ColorValue] = None
156
223
  """
157
- Defines the background color of tile when the sublist is collapsed.
224
+ Defines the background color of this tile when the sublist
225
+ is collapsed ([`expanded`][(c).] is False).
226
+
227
+ If `None`, [`ExpansionTileTheme.collapsed_bgcolor`][flet.] is used;
228
+ if that is also `None`, then defaults to [`Colors.TRANSPARENT`][flet.].
158
229
  """
159
230
 
160
231
  collapsed_icon_color: Optional[ColorValue] = None
161
232
  """
162
- The icon color of tile's expansion arrow icon when the sublist is collapsed.
233
+ The icon color of this tile's expansion arrow icon when the sublist
234
+ is collapsed ([`expanded`][(c).] is False).
235
+
236
+ If `None`, [`ExpansionTileTheme.collapsed_icon_color`][flet.] is used;
237
+ if that is also `None`, then defaults to [`ColorScheme.on_surface`][flet.]
238
+ of the [`Page.theme`][flet.].
163
239
  """
164
240
 
165
241
  collapsed_text_color: Optional[ColorValue] = None
166
242
  """
167
- The color of the tile's titles when the sublist is collapsed.
243
+ The color of this tile's titles when the sublist
244
+ is collapsed ([`expanded`][(c).] is False).
245
+
246
+ If `None`, [`ExpansionTileTheme.collapsed_text_color`][flet.] is used;
247
+ if that is also `None`, then defaults to [`body_large`][flet.TextTheme.]
248
+ of the [`Theme.text_theme`][flet.].
168
249
  """
169
250
 
170
251
  collapsed_shape: Optional[OutlinedBorder] = None
171
252
  """
172
253
  The tile's border shape when the sublist is collapsed.
254
+
255
+ If `None`, [`ExpansionTileTheme.shape`][flet.] is used;
256
+ if that is also `None`, then defaults to a [`Border`][flet.] with vertical sides
257
+ of color [`Colors.TRANSPARENT`][flet.].
173
258
  """
174
259
 
175
260
  dense: Optional[bool] = None
176
261
  """
177
- Whether this list tile is part of a vertically dense list. Dense list tiles default
178
- to a smaller height.
262
+ Whether this list tile is part of a vertically dense list.
263
+
264
+ Dense tiles default to having a smaller height.
179
265
 
180
266
  It is not recommended to set this property to `True` when in Material3.
267
+
268
+ If `None`, then its value is based on [`ListTileTheme.dense`][flet.].
181
269
  """
182
270
 
183
271
  enable_feedback: bool = True
@@ -189,26 +277,75 @@ class ExpansionTile(LayoutControl, AdaptiveControl):
189
277
 
190
278
  show_trailing_icon: bool = True
191
279
  """
192
- Whether to show the trailing icon (be it the default icon or the custom `trailing`,
193
- if specified and visible).
280
+ Whether this tile should build/show a default trailing icon, if
281
+ [`trailing`][(c).] is `None`.
194
282
  """
195
283
 
196
284
  min_tile_height: Optional[Number] = None
197
285
  """
198
- The minimum height of the tile.
286
+ The minimum height of this tile.
287
+
288
+ If `None`, the default tile heights are `56.0`, `72.0`, and `88.0` for one, two,
289
+ and three lines of text respectively. If [`dense`][(c).] is `True`, these defaults
290
+ are changed to `48.0`, `64.0`, and `76.0`. A visual density value or a large title
291
+ will also adjust the default tile heights.
292
+ """
293
+
294
+ expanded: bool = False
295
+ """
296
+ The expansion state of this tile.
297
+
298
+ `True` - expanded, `False` - collapsed.
199
299
  """
200
300
 
201
301
  visual_density: Optional[VisualDensity] = None
202
302
  """
203
- Defines how compact the control's layout will be.
303
+ Defines how compact this tile's layout will be.
304
+ """
305
+
306
+ animation_style: Optional[AnimationStyle] = None
307
+ """
308
+ Defines the animation style (curve and duration) for this tile's expansion and
309
+ collapse.
310
+
311
+ If [`AnimationStyle.duration`][flet.] is provided, it will be used to override
312
+ the expansion animation duration. If it is `None`, then
313
+ [`AnimationStyle.duration`][flet.] from the
314
+ [`ExpansionTileTheme.animation_style`][(c).] will be used. If that is also
315
+ `None`, `Duration(milliseconds=200)` will be used as default.
316
+
317
+ If [`AnimationStyle.curve`][flet.] is provided, it will be used to override
318
+ the expansion animation curve. If it is `None`, then
319
+ [`AnimationStyle.curve`][flet.] from the
320
+ [`ExpansionTileTheme.animation_style`][(c).] will be used. If that is also
321
+ `None`, [`Curves.EASE_IN`][flet.] will be used as default.
322
+
323
+ If [`AnimationStyle.reverse_curve`][flet.] is provided, it will be used to override
324
+ the collapse animation curve. If it is `None`, then
325
+ [`AnimationStyle.reverse_curve`][flet.] from the
326
+ [`ExpansionTileTheme.animation_style`][(c).] will be used. If that is also
327
+ `None`, the expansion curve will be used as default.
328
+
329
+ Tip:
330
+ To disable the animations, use
331
+ [`AnimationStyle.no_animation()`][flet.AnimationStyle.no_animation].
204
332
  """
205
333
 
206
334
  on_change: Optional[ControlEventHandler["ExpansionTile"]] = None
207
335
  """
208
336
  Called when a user clicks or taps the list tile.
337
+
338
+ The [`data`][flet.Event.] property of the event handler argument is a boolean
339
+ representing the [`expanded`][(c).] state of the tile after the change.
209
340
  """
210
341
 
211
342
  def before_update(self):
212
343
  super().before_update()
213
344
  if isinstance(self.title, Control) and not self.title.visible:
214
345
  raise ValueError("title must be visible")
346
+ if self.expanded_cross_axis_alignment == CrossAxisAlignment.BASELINE:
347
+ raise ValueError(
348
+ "expanded_cross_axis_alignment cannot be CrossAxisAlignment.BASELINE "
349
+ "since the expanded controls are aligned in a column, not a row. "
350
+ "Try aligning the controls differently."
351
+ )
@@ -25,10 +25,10 @@ class TextButton(LayoutControl, AdaptiveControl):
25
25
 
26
26
  ```python
27
27
  ft.TextButton(
28
- content="Text Button",
29
- icon=ft.Icons.STAR_BORDER,
30
- icon_color=ft.Colors.BLUE_300,
31
- )
28
+ content="Text Button",
29
+ icon=ft.Icons.STAR_BORDER,
30
+ icon_color=ft.Colors.BLUE_300,
31
+ )
32
32
  ```
33
33
  """
34
34
 
@@ -87,8 +87,8 @@ class TextButton(LayoutControl, AdaptiveControl):
87
87
  """
88
88
  Called when a mouse pointer enters or exists this button's response area.
89
89
 
90
- The [`data`][flet.Event.] property of event object is `True` when cursor
91
- enters and `False` when it exits.
90
+ The [`data`][flet.Event.] property of the event handler argument is `True` when
91
+ cursor enters and `False` when it exits.
92
92
  """
93
93
 
94
94
  on_focus: Optional[ControlEventHandler["TextButton"]] = None
flet/controls/theme.py CHANGED
@@ -3,6 +3,7 @@ from enum import Enum
3
3
  from typing import Optional
4
4
 
5
5
  from flet.controls.alignment import Alignment
6
+ from flet.controls.animation import AnimationStyle
6
7
  from flet.controls.border import BorderSide
7
8
  from flet.controls.border_radius import BorderRadiusValue
8
9
  from flet.controls.box import BoxConstraints, BoxDecoration, BoxShadowValue
@@ -11,6 +12,8 @@ from flet.controls.control_state import ControlStateValue
11
12
  from flet.controls.duration import DurationValue
12
13
  from flet.controls.geometry import Size
13
14
  from flet.controls.margin import MarginValue
15
+ from flet.controls.material.expansion_tile import TileAffinity
16
+ from flet.controls.material.list_tile import ListTileStyle, ListTileTitleAlignment
14
17
  from flet.controls.material.menu_bar import MenuStyle
15
18
  from flet.controls.material.navigation_bar import NavigationBarLabelBehavior
16
19
  from flet.controls.material.navigation_rail import NavigationRailLabelType
@@ -530,92 +533,77 @@ class TabBarTheme:
530
533
 
531
534
  indicator_size: Optional[TabBarIndicatorSize] = None
532
535
  """
533
- Overrides the default value for
534
- [`TabBar.indicator_size`][flet.].
536
+ Overrides the default value for [`TabBar.indicator_size`][flet.].
535
537
  """
536
538
 
537
539
  indicator: Optional[UnderlineTabIndicator] = None
538
540
  """
539
- Overrides the default value for
540
- [`TabBar.indicator`][flet.].
541
+ Overrides the default value for [`TabBar.indicator`][flet.].
541
542
  """
542
543
 
543
544
  indicator_animation: Optional[TabIndicatorAnimation] = None
544
545
  """
545
- Overrides the default value for
546
- [`TabBar.indicator_animation`][flet.].
546
+ Overrides the default value for [`TabBar.indicator_animation`][flet.].
547
547
  """
548
548
 
549
549
  splash_border_radius: Optional[BorderRadiusValue] = None
550
550
  """
551
- Overrides the default value for
552
- [`TabBar.splash_border_radius`][flet.].
551
+ Overrides the default value for [`TabBar.splash_border_radius`][flet.].
553
552
  """
554
553
 
555
554
  tab_alignment: Optional[TabAlignment] = None
556
555
  """
557
- Overrides the default value for
558
- [`TabBar.tab_alignment`][flet.].
556
+ Overrides the default value for [`TabBar.tab_alignment`][flet.].
559
557
  """
560
558
 
561
559
  overlay_color: Optional[ControlStateValue[ColorValue]] = None
562
560
  """
563
- Overrides the default value for
564
- [`TabBar.overlay_color`][flet.].
561
+ Overrides the default value for [`TabBar.overlay_color`][flet.].
565
562
  """
566
563
 
567
564
  divider_color: Optional[ColorValue] = None
568
565
  """
569
- Overrides the default value for
570
- [`TabBar.divider_color`][flet.].
566
+ Overrides the default value for [`TabBar.divider_color`][flet.].
571
567
  """
572
568
 
573
569
  indicator_color: Optional[ColorValue] = None
574
570
  """
575
- Overrides the default value for
576
- [`TabBar.indicator_color`][flet.].
571
+ Overrides the default value for [`TabBar.indicator_color`][flet.].
577
572
  """
578
573
 
579
574
  mouse_cursor: Optional[ControlStateValue[Optional[MouseCursor]]] = None
580
575
  """
581
- Overrides the default value for
582
- [`TabBar.mouse_cursor`][flet.].
576
+ Overrides the default value for [`TabBar.mouse_cursor`][flet.].
583
577
  """
584
578
 
585
579
  divider_height: Optional[Number] = None
586
580
  """
587
- Overrides the default value for
588
- [`TabBar.divider_height`][flet.].
581
+ Overrides the default value for [`TabBar.divider_height`][flet.].
589
582
  """
590
583
 
591
584
  label_color: Optional[ColorValue] = None
592
585
  """
593
- Overrides the default value for
594
- [`TabBar.label_color`][flet.].
586
+ Overrides the default value for [`TabBar.label_color`][flet.].
595
587
  """
596
588
 
597
589
  unselected_label_color: Optional[ColorValue] = None
598
590
  """
599
- Overrides the default value for
600
- [`TabBar.unselected_label_color`][flet.].
591
+ Overrides the default value for [`TabBar.unselected_label_color`][flet.].
601
592
  """
602
593
 
603
594
  label_padding: Optional[PaddingValue] = None
604
595
  """
605
- Overrides the default value for
606
- [`TabBar.label_padding`][flet.].
596
+ Overrides the default value for [`TabBar.label_padding`][flet.].
607
597
  """
608
598
 
609
599
  label_text_style: Optional[TextStyle] = None
610
600
  """
611
- Overrides the default value for
612
- [`TabBar.label_text_style`][flet.].
601
+ Overrides the default value for [`TabBar.label_text_style`][flet.].
613
602
  """
614
603
 
615
604
  unselected_label_text_style: Optional[TextStyle] = None
616
605
  """
617
- Overrides the default value for
618
- [`TabBar.unselected_label_text_style`][flet.].
606
+ Overrides the default value for [`TabBar.unselected_label_text_style`][flet.].
619
607
  """
620
608
 
621
609
 
@@ -709,50 +697,44 @@ class DialogTheme:
709
697
 
710
698
  title_text_style: Optional[TextStyle] = None
711
699
  """
712
- Overrides the default value of
713
- [`AlertDialog.title_text_style`][flet.] in all
700
+ Overrides the default value of [`AlertDialog.title_text_style`][flet.] in all
714
701
  descendant [`AlertDialog`][flet.] controls.
715
702
  """
716
703
 
717
704
  content_text_style: Optional[TextStyle] = None
718
705
  """
719
- Overrides the default value of
720
- [`AlertDialog.content_text_style`][flet.] in all
706
+ Overrides the default value of [`AlertDialog.content_text_style`][flet.] in all
721
707
  descendant [`AlertDialog`][flet.] controls.
722
708
  """
723
709
 
724
710
  alignment: Optional[Alignment] = None
725
711
  """
726
- Overrides the default value of [`AlertDialog.alignment`][flet.]
727
- in all descendant [`AlertDialog`][flet.] controls.
712
+ Overrides the default value of [`AlertDialog.alignment`][flet.] in all
713
+ descendant [`AlertDialog`][flet.] controls.
728
714
  """
729
715
 
730
716
  actions_padding: Optional[PaddingValue] = None
731
717
  """
732
- Overrides the default value of
733
- [`AlertDialog.actions_padding`][flet.] in all descendant
734
- [`AlertDialog`][flet.] controls.
718
+ Overrides the default value of [`AlertDialog.actions_padding`][flet.] in all
719
+ descendant [`AlertDialog`][flet.] controls.
735
720
  """
736
721
 
737
722
  clip_behavior: Optional[ClipBehavior] = None
738
723
  """
739
- Overrides the default value of
740
- [`AlertDialog.clip_behavior`][flet.] in all descendant
741
- [`AlertDialog`][flet.] controls.
724
+ Overrides the default value of [`AlertDialog.clip_behavior`][flet.] in all
725
+ descendant [`AlertDialog`][flet.] controls.
742
726
  """
743
727
 
744
728
  barrier_color: Optional[ColorValue] = None
745
729
  """
746
- Overrides the default value of
747
- [`AlertDialog.barrier_color`][flet.] in all descendant
748
- [`AlertDialog`][flet.] controls.
730
+ Overrides the default value of [`AlertDialog.barrier_color`][flet.] in all
731
+ descendant [`AlertDialog`][flet.] controls.
749
732
  """
750
733
 
751
734
  inset_padding: Optional[PaddingValue] = None
752
735
  """
753
- Overrides the default value of
754
- [`AlertDialog.inset_padding`][flet.] in all descendant
755
- [`AlertDialog`][flet.] controls.
736
+ Overrides the default value of [`AlertDialog.inset_padding`][flet.] in all
737
+ descendant [`AlertDialog`][flet.] controls.
756
738
  """
757
739
 
758
740
 
@@ -764,9 +746,8 @@ class ButtonTheme:
764
746
 
765
747
  style: Optional[ButtonStyle] = None
766
748
  """
767
- Overrides the default value of
768
- [`Button.style`][flet.] in all descendant
769
- [`Button`][flet.] controls.
749
+ Overrides the default value of [`Button.style`][flet.] in all
750
+ descendant [`Button`][flet.] controls.
770
751
  """
771
752
 
772
753
 
@@ -778,9 +759,8 @@ class OutlinedButtonTheme:
778
759
 
779
760
  style: Optional[ButtonStyle] = None
780
761
  """
781
- Overrides the default value of
782
- [`OutlinedButton.style`][flet.] in all descendant
783
- [`OutlinedButton`][flet.] controls.
762
+ Overrides the default value of [`OutlinedButton.style`][flet.] in all
763
+ descendant [`OutlinedButton`][flet.] controls.
784
764
  """
785
765
 
786
766
 
@@ -792,9 +772,8 @@ class TextButtonTheme:
792
772
 
793
773
  style: Optional[ButtonStyle] = None
794
774
  """
795
- Overrides the default value of
796
- [`TextButton.style`][flet.] in all descendant
797
- [`TextButton`][flet.] controls.
775
+ Overrides the default value of [`TextButton.style`][flet.] in all
776
+ descendant [`TextButton`][flet.] controls.
798
777
  """
799
778
 
800
779
 
@@ -806,9 +785,8 @@ class FilledButtonTheme:
806
785
 
807
786
  style: Optional[ButtonStyle] = None
808
787
  """
809
- Overrides the default value of
810
- [`FilledButton.style`][flet.] in all descendant
811
- [`FilledButton`][flet.] controls.
788
+ Overrides the default value of [`FilledButton.style`][flet.] in all
789
+ descendant [`FilledButton`][flet.] controls.
812
790
  """
813
791
 
814
792
 
@@ -820,9 +798,8 @@ class IconButtonTheme:
820
798
 
821
799
  style: Optional[ButtonStyle] = None
822
800
  """
823
- Overrides the default value of
824
- [`IconButton.style`][flet.] in all descendant
825
- [`IconButton`][flet.] controls.
801
+ Overrides the default value of [`IconButton.style`][flet.] in all
802
+ descendant [`IconButton`][flet.] controls.
826
803
  """
827
804
 
828
805
 
@@ -834,15 +811,14 @@ class BottomSheetTheme:
834
811
 
835
812
  bgcolor: Optional[ColorValue] = None
836
813
  """
837
- Overrides the default value of [`BottomSheet.bgcolor`][flet.] in
838
- all descendant [`BottomSheet`][flet.] controls.
814
+ Overrides the default value of [`BottomSheet.bgcolor`][flet.] in all
815
+ descendant [`BottomSheet`][flet.] controls.
839
816
  """
840
817
 
841
818
  elevation: Optional[Number] = None
842
819
  """
843
- Overrides the default value of
844
- [`BottomSheet.elevation`][flet.] in all descendant
845
- [`BottomSheet`][flet.] controls.
820
+ Overrides the default value of [`BottomSheet.elevation`][flet.] in all
821
+ descendant [`BottomSheet`][flet.] controls.
846
822
  """
847
823
 
848
824
  shape: Optional[OutlinedBorder] = None
@@ -853,42 +829,38 @@ class BottomSheetTheme:
853
829
 
854
830
  show_drag_handle: Optional[bool] = None
855
831
  """
856
- Overrides the default value of
857
- [`BottomSheet.show_drag_handle`][flet.] in all
832
+ Overrides the default value of [`BottomSheet.show_drag_handle`][flet.] in all
858
833
  descendant [`BottomSheet`][flet.] controls.
859
834
  """
860
835
 
861
836
  clip_behavior: Optional[ClipBehavior] = None
862
837
  """
863
- Overrides the default value of
864
- [`BottomSheet.clip_behavior`][flet.] in all
838
+ Overrides the default value of [`BottomSheet.clip_behavior`][flet.] in all
865
839
  descendant [`BottomSheet`][flet.] controls.
866
840
  """
867
841
 
868
842
  size_constraints: Optional[BoxConstraints] = None
869
843
  """
870
- Overrides the default value of
871
- [`BottomSheet.size_constraints`][flet.] in all
844
+ Overrides the default value of [`BottomSheet.size_constraints`][flet.] in all
872
845
  descendant [`BottomSheet`][flet.] controls.
873
846
  """
874
847
 
875
848
  barrier_color: Optional[ColorValue] = None
876
849
  """
877
- Overrides the default value of
878
- [`BottomSheet.barrier_color`][flet.] in all
850
+ Overrides the default value of [`BottomSheet.barrier_color`][flet.] in all
879
851
  descendant [`BottomSheet`][flet.] controls.
880
852
  """
881
853
 
882
854
  drag_handle_color: Optional[ColorValue] = None
883
855
  """
884
- Overrides the default value of drag handle color in all descendant
885
- [`BottomSheet`][flet.] controls.
856
+ Overrides the default value of drag handle color in all
857
+ descendant [`BottomSheet`][flet.] controls.
886
858
  """
887
859
 
888
860
  shadow_color: Optional[ColorValue] = None
889
861
  """
890
- Overrides the default value of shadow color in all descendant
891
- [`BottomSheet`][flet.] controls.
862
+ Overrides the default value of shadow color in all
863
+ descendant [`BottomSheet`][flet.] controls.
892
864
  """
893
865
 
894
866
 
@@ -900,39 +872,38 @@ class CardTheme:
900
872
 
901
873
  color: Optional[ColorValue] = None
902
874
  """
903
- Overrides the default value of [`Card.clip_behavior`][flet.] in
904
- all descendant [`Card`][flet.] controls.
875
+ Overrides the default value of [`Card.clip_behavior`][flet.] in all
876
+ descendant [`Card`][flet.] controls.
905
877
  """
906
878
 
907
879
  shadow_color: Optional[ColorValue] = None
908
880
  """
909
- Overrides the default value of [`Card.shadow_color`][flet.] in
910
- all descendant [`Card`][flet.] controls.
881
+ Overrides the default value of [`Card.shadow_color`][flet.] in all
882
+ descendant [`Card`][flet.] controls.
911
883
  """
912
884
 
913
885
  elevation: Optional[Number] = None
914
886
  """
915
- Overrides the default value of
916
- [`Card.elevation`][flet.] in all descendant [`Card`][flet.]
917
- controls.
887
+ Overrides the default value of [`Card.elevation`][flet.] in all
888
+ descendant [`Card`][flet.] controls.
918
889
  """
919
890
 
920
891
  shape: Optional[OutlinedBorder] = None
921
892
  """
922
- Overrides the default value of [`Card.shape`][flet.] in all descendant
923
- [`Card`][flet.] controls.
893
+ Overrides the default value of [`Card.shape`][flet.] in all
894
+ descendant [`Card`][flet.] controls.
924
895
  """
925
896
 
926
897
  clip_behavior: Optional[ClipBehavior] = None
927
898
  """
928
- Overrides the default value of [`Card.clip_behavior`][flet.] in
929
- all descendant [`Card`][flet.] controls.
899
+ Overrides the default value of [`Card.clip_behavior`][flet.] in all
900
+ descendant [`Card`][flet.] controls.
930
901
  """
931
902
 
932
903
  margin: Optional[MarginValue] = None
933
904
  """
934
- Overrides the default value of [`Card.margin`][flet.] in all descendant
935
- [`Card`][flet.] controls.
905
+ Overrides the default value of [`Card.margin`][flet.] in all
906
+ descendant [`Card`][flet.] controls.
936
907
  """
937
908
 
938
909
 
@@ -962,37 +933,32 @@ class ChipTheme:
962
933
 
963
934
  selected_shadow_color: Optional[ColorValue] = None
964
935
  """
965
- Overrides the default value of
966
- [`Chip.selected_shadow_color`][flet.] in all descendant
967
- [`Chip`][flet.] controls.
936
+ Overrides the default value of [`Chip.selected_shadow_color`][flet.] in all
937
+ descendant [`Chip`][flet.] controls.
968
938
  """
969
939
 
970
940
  disabled_color: Optional[ColorValue] = None
971
941
  """
972
- Overrides the default value of
973
- [`Chip.disabled_color`][flet.] in all descendant
974
- [`Chip`][flet.] controls.
942
+ Overrides the default value of [`Chip.disabled_color`][flet.] in all
943
+ descendant [`Chip`][flet.] controls.
975
944
  """
976
945
 
977
946
  selected_color: Optional[ColorValue] = None
978
947
  """
979
- Overrides the default value of
980
- [`Chip.selected_color`][flet.] in all descendant
981
- [`Chip`][flet.] controls.
948
+ Overrides the default value of [`Chip.selected_color`][flet.] in all
949
+ descendant [`Chip`][flet.] controls.
982
950
  """
983
951
 
984
952
  check_color: Optional[ColorValue] = None
985
953
  """
986
- Overrides the default value of
987
- [`Chip.check_color`][flet.] in all descendant
988
- [`Chip`][flet.] controls.
954
+ Overrides the default value of [`Chip.check_color`][flet.] in all
955
+ descendant [`Chip`][flet.] controls.
989
956
  """
990
957
 
991
958
  delete_icon_color: Optional[ColorValue] = None
992
959
  """
993
- Overrides the default value of
994
- [`Chip.delete_icon_color`][flet.] in all descendant
995
- [`Chip`][flet.] controls.
960
+ Overrides the default value of [`Chip.delete_icon_color`][flet.] in all
961
+ descendant [`Chip`][flet.] controls.
996
962
  """
997
963
 
998
964
  elevation: Optional[Number] = None
@@ -1003,9 +969,8 @@ class ChipTheme:
1003
969
 
1004
970
  elevation_on_click: Optional[Number] = None
1005
971
  """
1006
- Overrides the default value of
1007
- [`Chip.elevation_on_click`][flet.] in all descendant
1008
- [`Chip`][flet.] controls.
972
+ Overrides the default value of [`Chip.elevation_on_click`][flet.] in all
973
+ descendant [`Chip`][flet.] controls.
1009
974
  """
1010
975
 
1011
976
  shape: Optional[OutlinedBorder] = None
@@ -1022,15 +987,14 @@ class ChipTheme:
1022
987
 
1023
988
  label_padding: Optional[PaddingValue] = None
1024
989
  """
1025
- Overrides the default value of [`Chip.label_padding`][flet.] in
1026
- all descendant [`Chip`][flet.] controls.
990
+ Overrides the default value of [`Chip.label_padding`][flet.] in all
991
+ descendant [`Chip`][flet.] controls.
1027
992
  """
1028
993
 
1029
994
  label_text_style: Optional[TextStyle] = None
1030
995
  """
1031
- Overrides the default value of
1032
- [`Chip.label_text_style`][flet.] in all descendant
1033
- [`Chip`][flet.] controls.
996
+ Overrides the default value of [`Chip.label_text_style`][flet.] in all
997
+ descendant [`Chip`][flet.] controls.
1034
998
  """
1035
999
 
1036
1000
  border_side: Optional[BorderSide] = None
@@ -1041,28 +1005,26 @@ class ChipTheme:
1041
1005
 
1042
1006
  show_checkmark: Optional[bool] = None
1043
1007
  """
1044
- Overrides the default value of [`Chip.show_checkmark`][flet.] in
1045
- all descendant [`Chip`][flet.] controls.
1008
+ Overrides the default value of [`Chip.show_checkmark`][flet.] in all
1009
+ descendant [`Chip`][flet.] controls.
1046
1010
  """
1047
1011
 
1048
1012
  leading_size_constraints: Optional[BoxConstraints] = None
1049
1013
  """
1050
- Overrides the default value of
1051
- [`Chip.leading_size_constraints`][flet.] in all
1014
+ Overrides the default value of [`Chip.leading_size_constraints`][flet.] in all
1052
1015
  descendant [`Chip`][flet.] controls.
1053
1016
  """
1054
1017
 
1055
1018
  delete_icon_size_constraints: Optional[BoxConstraints] = None
1056
1019
  """
1057
- Overrides the default value of
1058
- [`Chip.delete_icon_size_constraints`][flet.] in
1059
- all descendant [`Chip`][flet.] controls.
1020
+ Overrides the default value of [`Chip.delete_icon_size_constraints`][flet.] in all
1021
+ descendant [`Chip`][flet.] controls.
1060
1022
  """
1061
1023
 
1062
1024
  brightness: Optional[Brightness] = None
1063
1025
  """
1064
- Overrides the default value for all chips which affects various base
1065
- material color choices in the chip rendering.
1026
+ Overrides the default value for all chips which affects various base material
1027
+ color choices in the chip rendering.
1066
1028
  """
1067
1029
 
1068
1030
  # secondary_selected_color: Optional[ColorValue] = None
@@ -1145,14 +1107,12 @@ class FloatingActionButtonTheme:
1145
1107
 
1146
1108
  enable_feedback: Optional[bool] = None
1147
1109
  """
1148
- If specified, defines the feedback property for
1149
- [`FloatingActionButton`][flet.].
1110
+ If specified, defines the feedback property for [`FloatingActionButton`][flet.].
1150
1111
  """
1151
1112
 
1152
1113
  extended_padding: Optional[PaddingValue] = None
1153
1114
  """
1154
- The padding for a [`FloatingActionButton`][flet.]'s
1155
- that has both icon and content.
1115
+ The padding for a [`FloatingActionButton`][flet.]'s that has both icon and content.
1156
1116
  """
1157
1117
 
1158
1118
  text_style: Optional[TextStyle] = None
@@ -1163,8 +1123,7 @@ class FloatingActionButtonTheme:
1163
1123
 
1164
1124
  icon_label_spacing: Optional[Number] = None
1165
1125
  """
1166
- The spacing between the icon and the label for
1167
- [`FloatingActionButton`][flet.].
1126
+ The spacing between the icon and the label for [`FloatingActionButton`][flet.].
1168
1127
  """
1169
1128
 
1170
1129
  extended_size_constraints: Optional[BoxConstraints] = None
@@ -2283,26 +2242,22 @@ class ListTileTheme:
2283
2242
 
2284
2243
  selected_tile_color: Optional[ColorValue] = None
2285
2244
  """
2286
- Overrides the default value for
2287
- [`ListTile.selected_tile_color`][flet.].
2245
+ Overrides the default value for [`ListTile.selected_tile_color`][flet.].
2288
2246
  """
2289
2247
 
2290
2248
  selected_color: Optional[ColorValue] = None
2291
2249
  """
2292
- Overrides the default value for
2293
- [`ListTile.selected_color`][flet.].
2250
+ Overrides the default value for [`ListTile.selected_color`][flet.].
2294
2251
  """
2295
2252
 
2296
2253
  is_three_line: Optional[bool] = None
2297
2254
  """
2298
- Overrides the default value for
2299
- [`ListTile.is_three_line`][flet.].
2255
+ Overrides the default value for [`ListTile.is_three_line`][flet.].
2300
2256
  """
2301
2257
 
2302
2258
  enable_feedback: Optional[bool] = None
2303
2259
  """
2304
- Overrides the default value for
2305
- [`ListTile.enable_feedback`][flet.].
2260
+ Overrides the default value for [`ListTile.enable_feedback`][flet.].
2306
2261
  """
2307
2262
 
2308
2263
  dense: Optional[bool] = None
@@ -2317,62 +2272,67 @@ class ListTileTheme:
2317
2272
 
2318
2273
  visual_density: Optional[VisualDensity] = None
2319
2274
  """
2320
- Overrides the default value for
2321
- [`ListTile.visual_density`][flet.].
2275
+ Overrides the default value for [`ListTile.visual_density`][flet.].
2322
2276
  """
2323
2277
 
2324
2278
  content_padding: Optional[PaddingValue] = None
2325
2279
  """
2326
- Overrides the default value for
2327
- [`ListTile.content_padding`][flet.].
2280
+ Overrides the default value for [`ListTile.content_padding`][flet.].
2328
2281
  """
2329
2282
 
2330
2283
  min_vertical_padding: Optional[PaddingValue] = None
2331
2284
  """
2332
- Overrides the default value for
2333
- [`ListTile.min_vertical_padding`][flet.].
2285
+ Overrides the default value for [`ListTile.min_vertical_padding`][flet.].
2334
2286
  """
2335
2287
 
2336
2288
  horizontal_spacing: Optional[Number] = None
2337
2289
  """
2338
- Overrides the default value for
2339
- [`ListTile.horizontal_spacing`][flet.].
2290
+ Overrides the default value for [`ListTile.horizontal_spacing`][flet.].
2340
2291
  """
2341
2292
 
2342
2293
  min_leading_width: Optional[Number] = None
2343
2294
  """
2344
- Overrides the default value for
2345
- [`ListTile.min_leading_width`][flet.].
2295
+ Overrides the default value for [`ListTile.min_leading_width`][flet.].
2346
2296
  """
2347
2297
 
2348
2298
  title_text_style: Optional[TextStyle] = None
2349
2299
  """
2350
- Overrides the default value for
2351
- [`ListTile.title_text_style`][flet.].
2300
+ Overrides the default value for [`ListTile.title_text_style`][flet.].
2352
2301
  """
2353
2302
 
2354
2303
  subtitle_text_style: Optional[TextStyle] = None
2355
2304
  """
2356
- Overrides the default value for
2357
- [`ListTile.subtitle_text_style`][flet.].
2305
+ Overrides the default value for [`ListTile.subtitle_text_style`][flet.].
2358
2306
  """
2359
2307
 
2360
2308
  leading_and_trailing_text_style: Optional[TextStyle] = None
2361
2309
  """
2362
- Overrides the default value for
2363
- [`ListTile.leading_and_trailing_text_style`][flet.].
2310
+ Overrides the default value for [`ListTile.leading_and_trailing_text_style`][flet.].
2364
2311
  """
2365
2312
 
2366
2313
  mouse_cursor: Optional[ControlStateValue[MouseCursor]] = None
2367
2314
  """
2368
- Overrides the default value for
2369
- [`ListTile.mouse_cursor`][flet.].
2315
+ Overrides the default value for [`ListTile.mouse_cursor`][flet.].
2370
2316
  """
2371
2317
 
2372
2318
  min_height: Optional[Number] = None
2373
2319
  """
2374
- Overrides the default value for
2375
- [`ListTile.min_height`][flet.].
2320
+ Overrides the default value for [`ListTile.min_height`][flet.].
2321
+ """
2322
+
2323
+ affinity: Optional[TileAffinity] = None
2324
+ """
2325
+ Overrides the default value for [`ExpansionTile.affinity`][flet.].
2326
+ """
2327
+
2328
+ style: Optional[ListTileStyle] = None
2329
+ """
2330
+ Overrides the default value for [`ListTile.style`][flet.].
2331
+ """
2332
+
2333
+ title_alignment: Optional[ListTileTitleAlignment] = None
2334
+ """
2335
+ Overrides the default value for [`ListTile.title_alignment`][flet.].
2376
2336
  """
2377
2337
 
2378
2338
 
@@ -2528,6 +2488,23 @@ class ExpansionTileTheme:
2528
2488
  [`ExpansionTile.controls_padding`][flet.].
2529
2489
  """
2530
2490
 
2491
+ shape: Optional[OutlinedBorder] = None
2492
+ """
2493
+ Overrides the default value for [`ExpansionTile.shape`][flet.].
2494
+ """
2495
+
2496
+ collapsed_shape: Optional[OutlinedBorder] = None
2497
+ """
2498
+ Overrides the default value for
2499
+ [`ExpansionTile.collapsed_shape`][flet.].
2500
+ """
2501
+
2502
+ animation_style: Optional[AnimationStyle] = None
2503
+ """
2504
+ Overrides the default value for
2505
+ [`ExpansionTile.animation_style`][flet.].
2506
+ """
2507
+
2531
2508
 
2532
2509
  @dataclass
2533
2510
  class SliderTheme:
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.dev6516"
13
+ version = "0.70.0.dev6519"
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.dev6516
3
+ Version: 0.70.0.dev6519
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
@@ -1,7 +1,7 @@
1
1
  flet/__init__.py,sha256=jw8lM_mMrtwx6FarCTrg8DWT6-fTCmHVPB7ofMEAAKw,26138
2
2
  flet/app.py,sha256=HSws0Zm4ZO0-Hp2P9h7xirCVnRkKCVXhuekyAXT_9Fo,11883
3
3
  flet/cli.py,sha256=IUM25fY_sqMtl0hlQGhlMQaBb1oNyO0VZeeBgRodhuA,204
4
- flet/version.py,sha256=elgXldNH_A68UZjUUzVs5ACUN78qyH2Ahc0cblTDqOc,2512
4
+ flet/version.py,sha256=vbhS2XY-x1G6SuTCkd-JZsbT4-Lem0N9_4exwktm9rU,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
@@ -33,8 +33,8 @@ flet/components/hooks/use_state.py,sha256=NXCkMQ-KIsu5pzr9CmaPZuUlQYUEE54CIKSQFr
33
33
  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
- flet/controls/animation.py,sha256=C3Sxqte4S225m3UvlQOm-DGxd1WJaqfdLpA6e10B_BM,3763
37
- flet/controls/base_control.py,sha256=MtePz5xzgVpAQQxb-wNr-roAs3Oud3G8DY__zmf1Gzg,10667
36
+ flet/controls/animation.py,sha256=8ZI7XovzJd7y6vs2xDkQwsSdGy191Qn2Wc15VJyfEiU,4391
37
+ flet/controls/base_control.py,sha256=sDKpgiB-ig8lZcVmg8S7OMvr7XCq-VJwmaKHoI4RBQs,10745
38
38
  flet/controls/base_page.py,sha256=KFTGaG1b-wiTm3-dTn__DDrw7GBvQIe8s9LD5X2SqBA,18824
39
39
  flet/controls/blur.py,sha256=taMH4qtILyAFn1qNsgBGRV3z0GSH6V7VKPV3ZSBhOL4,602
40
40
  flet/controls/border.py,sha256=aBxj8OzEoufGPZb5yibsg2SO2OHeBAFmti63-y_oQtY,8808
@@ -69,7 +69,7 @@ flet/controls/ref.py,sha256=Lde_Nlly6NEtJX_LYv_DxIDkao6w4Buo7Nus4XUPQDA,580
69
69
  flet/controls/scrollable_control.py,sha256=Mu0oGA3fxweurlJQq1TuaUw2NMA8xy3DC27zJndQBZc,4571
70
70
  flet/controls/template_route.py,sha256=qP5KvFY5gazw-G9Q9bcoADlWAh-MJ_9wsIyIxjElkaE,662
71
71
  flet/controls/text_style.py,sha256=WC8uPdfps5PyZ64cdPBnWhC2HULK39Uah5V368JdVoI,9386
72
- flet/controls/theme.py,sha256=CPyVUHMOoIJd015TjtrBUbmFMH9rWWhk61RWB4v9B3k,97937
72
+ flet/controls/theme.py,sha256=MysegyFC1fKyLWtWNPpmLgJ9CgEnpoZrktG8iRJxQK4,98739
73
73
  flet/controls/transform.py,sha256=gZQGM5nhfiapvm25uxvswbTWu0qQM3oBGRVxSTDhGYY,2782
74
74
  flet/controls/types.py,sha256=t9yWNzzJMI-o9Ji4Ia59OdFonNiKwQoj2WGP7qhjHbI,26194
75
75
  flet/controls/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -83,7 +83,7 @@ flet/controls/core/flet_app.py,sha256=5WvbgRiktRxAMRKiZ667o1Yt7ozfuSM811yTE6D2rf
83
83
  flet/controls/core/gesture_detector.py,sha256=dcSzIiIjD7QOPVGcKDdW2MxvCdtla8M_yHvqxn4N1kg,8911
84
84
  flet/controls/core/grid_view.py,sha256=s9otiOfKffHMg6u7REN6bQt9j7ykl9GIbWBZIhaYmFg,3760
85
85
  flet/controls/core/icon.py,sha256=LVjdByVXnVjR_vxb_kJT2BMqiF7vgvp0OR-iV9LTw30,4115
86
- flet/controls/core/image.py,sha256=Qbooag88pvfqUq-hzf6C-Q1awib_bT3_cOeEAGhyjDA,5455
86
+ flet/controls/core/image.py,sha256=7TW7oAhy_y6PVoqcNKZ-tCSYTRH-sisccVFpPTY5TB4,4077
87
87
  flet/controls/core/interactive_viewer.py,sha256=t76mVE29Us9wNCccZBM-RyMrHsmubumnvLf5HYxwxGk,4580
88
88
  flet/controls/core/keyboard_listener.py,sha256=Rml7c7pHNzTyBiSbW15cUXwhr5YddTrSo98z2tzWhaI,2527
89
89
  flet/controls/core/list_view.py,sha256=hlQNqVRd4_BzZpRxlOK00Gk1rFWpvcqneqtZz-7RC3o,3741
@@ -142,7 +142,7 @@ flet/controls/cupertino/cupertino_picker.py,sha256=bWWPGFKK-2RYDSyvbhHV7Q8q6dwDP
142
142
  flet/controls/cupertino/cupertino_radio.py,sha256=ibdDyQZL64UDmFLyG0UaekL15hkQlJEwITgWu1GIzq4,2736
143
143
  flet/controls/cupertino/cupertino_segmented_button.py,sha256=0j2XFQp_0WF2b-eEMZXcT2SI4apugN3qLwOfYlbMKmM,3237
144
144
  flet/controls/cupertino/cupertino_slider.py,sha256=T3DB9BPWAulcaHN-cl3fBpQrfmgptN9p3ewb7Slr_bg,3587
145
- flet/controls/cupertino/cupertino_sliding_segmented_button.py,sha256=9PGsdIzbuOHzywuOgQPhIc_Pq9VxtOucXgSaWPnvUes,3314
145
+ flet/controls/cupertino/cupertino_sliding_segmented_button.py,sha256=7m9zAvgnEzVYSDjGXFEqVyLLtuhwO_4V_WTp0kg8FjE,3252
146
146
  flet/controls/cupertino/cupertino_switch.py,sha256=nRqYfP65Jaieg0lm3JhXoz73Mdael2W6MBUZmf5829M,4259
147
147
  flet/controls/cupertino/cupertino_textfield.py,sha256=Iu_6ZQCBj34iAFtmboZb909fD75B8VpFm7J02-Xb6XE,3207
148
148
  flet/controls/cupertino/cupertino_timer_picker.py,sha256=BNS2W8hUfiozKpiUZueo1h4_6YhxAd5zknR3WAGbs54,4438
@@ -168,8 +168,8 @@ flet/controls/material/divider.py,sha256=Y7T5FYz8X0xHb137QiNMXNRwXRFEWsxLHa8P0DD
168
168
  flet/controls/material/dropdown.py,sha256=YO_R05qLZV1rFRNQfPjEI9juMCRn8zigW6va-zqrSx8,10159
169
169
  flet/controls/material/dropdownm2.py,sha256=tl_YXIQFbg0824JgOUEiOUDb4z4CYFM7cpV4IbVrlyE,5679
170
170
  flet/controls/material/elevated_button.py,sha256=AjrLkxn1ViwGE7ms8aNlNTgaR1-qIFhN8aU254Hx9Vc,274
171
- flet/controls/material/expansion_panel.py,sha256=hIPBDCT3Gq7oI2UlgqjhUHjCQWvvwjjfhjRU79DFoSs,4276
172
- flet/controls/material/expansion_tile.py,sha256=sEAXoc7-FkjFUEIgM5pK3LVKIpjsTxI2BSedKvC9GSU,5744
171
+ flet/controls/material/expansion_panel.py,sha256=9QHvjnIerrEFIILfYxUnb0VeKWTKa0xvVIKvwRNWoJE,4306
172
+ flet/controls/material/expansion_tile.py,sha256=l-_eMi-mzTEW2ZRRtLU_5Ks5RWYK8vEYuwoXt4d1PqM,11766
173
173
  flet/controls/material/filled_button.py,sha256=ZtCy47Yrv2B1RyDk1pszVKiUj-YtMcLI7koTf5Bz0Mo,452
174
174
  flet/controls/material/filled_tonal_button.py,sha256=t9zXaMvakzmHUWtPfJK1ORAd8P3O5XCPi098PYAiOCU,574
175
175
  flet/controls/material/floating_action_button.py,sha256=Qnprd6v7H_8OdMy8G6kTuHLIvkCtI8HxCi4URZx4OAw,5924
@@ -198,7 +198,7 @@ flet/controls/material/snack_bar.py,sha256=1OmcukqSUD7I_0-KfpBcnXsRUYHFsseYN_6RC
198
198
  flet/controls/material/submenu_button.py,sha256=xDGBjZLT22Pi0UrRnUQFx9RAl7oJEWChuP5929rEkeE,3193
199
199
  flet/controls/material/switch.py,sha256=JLAPcOq0XzIkw1_HmsmBukROV9zBAkm-MZt8iqIKKXg,7030
200
200
  flet/controls/material/tabs.py,sha256=WIGsEs6lpw3LwqWsgIAJ4a0PpWKgLVOKkZRKfarnNY4,18565
201
- flet/controls/material/text_button.py,sha256=xAHx613EN07MT9fuWhvp7oUQ6zZ7Gw7rtsO5YaHrd1A,2747
201
+ flet/controls/material/text_button.py,sha256=n6NgTJn3nJpUdSKRDpQWFf5Alu_BNIdALTSDyQZKgGU,2745
202
202
  flet/controls/material/textfield.py,sha256=veYqSHOz_YDBjQsd-cK8ALxrgtWyy50p_Yyj51biPSA,12909
203
203
  flet/controls/material/time_picker.py,sha256=Jj1snTHdZdbG40d0AYrt2mwrXxxFEU-TfDcT6pH6Y5Q,3229
204
204
  flet/controls/material/tooltip.py,sha256=PTqJiiE95z4WCTlvCx7i3vA-gGwphUT7w_2oXMiiVtY,5636
@@ -247,8 +247,8 @@ flet/utils/platform_utils.py,sha256=U4cqV3EPi5QNYjbhfZmtk41-KMtI_P7KvVdnZzMOgJA,
247
247
  flet/utils/slugify.py,sha256=e-lsoDc2_dk5jQnySaHCU83AA4O6mguEgCEdk2smW2Y,466
248
248
  flet/utils/strings.py,sha256=R63_i7PdSAStCDPJ-O_WHBt3H02JQ14GSbnjLIpPTUc,178
249
249
  flet/utils/vector.py,sha256=pYZzjldBWCZbSeSkZ8VmujwcZC7VBWk1NLBPA-2th3U,3207
250
- flet-0.70.0.dev6516.dist-info/METADATA,sha256=tKDoYqolUlX0kTMNpSqdq7SiGUAaHXBCL6Dvtl6rEjE,6109
251
- flet-0.70.0.dev6516.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
252
- flet-0.70.0.dev6516.dist-info/entry_points.txt,sha256=mbBhHNUnLHiDqR36WeJrfLJU0Y0y087-M4wagQmaQ_Y,39
253
- flet-0.70.0.dev6516.dist-info/top_level.txt,sha256=HbLrSnWJX2jZOEZAI14cGzW8Q5BbOGTtE-7knD5FDh0,5
254
- flet-0.70.0.dev6516.dist-info/RECORD,,
250
+ flet-0.70.0.dev6519.dist-info/METADATA,sha256=X4mQaWAWPqgZEb8BTKmD9393Enjl5agDWPm9WVWC5Ps,6109
251
+ flet-0.70.0.dev6519.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
252
+ flet-0.70.0.dev6519.dist-info/entry_points.txt,sha256=mbBhHNUnLHiDqR36WeJrfLJU0Y0y087-M4wagQmaQ_Y,39
253
+ flet-0.70.0.dev6519.dist-info/top_level.txt,sha256=HbLrSnWJX2jZOEZAI14cGzW8Q5BbOGTtE-7knD5FDh0,5
254
+ flet-0.70.0.dev6519.dist-info/RECORD,,