flet 0.70.0.dev5620__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 +21 -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 +41 -32
- 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 +669 -608
- flet/controls/types.py +11 -11
- flet/testing/flet_test_app.py +4 -4
- flet/version.py +1 -1
- {flet-0.70.0.dev5620.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.dev5620.dist-info/RECORD +0 -238
- {flet-0.70.0.dev5620.dist-info → flet-0.70.0.dev5771.dist-info}/WHEEL +0 -0
- {flet-0.70.0.dev5620.dist-info → flet-0.70.0.dev5771.dist-info}/entry_points.txt +0 -0
- {flet-0.70.0.dev5620.dist-info → flet-0.70.0.dev5771.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
from dataclasses import field
|
|
2
|
+
from datetime import datetime
|
|
3
|
+
from typing import Optional
|
|
4
|
+
|
|
5
|
+
from flet.controls.base_control import control
|
|
6
|
+
from flet.controls.control_event import (
|
|
7
|
+
ControlEventHandler,
|
|
8
|
+
)
|
|
9
|
+
from flet.controls.dialog_control import DialogControl
|
|
10
|
+
from flet.controls.duration import DateTimeValue
|
|
11
|
+
from flet.controls.material.date_picker import DatePickerEntryMode
|
|
12
|
+
from flet.controls.material.textfield import KeyboardType
|
|
13
|
+
from flet.controls.types import (
|
|
14
|
+
ColorValue,
|
|
15
|
+
IconData,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"DateRangePicker",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@control("DateRangePicker")
|
|
24
|
+
class DateRangePicker(DialogControl):
|
|
25
|
+
"""
|
|
26
|
+
A Material-style date range picker dialog.
|
|
27
|
+
|
|
28
|
+
It can be opened by calling [`Page.show_dialog()`][flet.Page.show_dialog] method.
|
|
29
|
+
|
|
30
|
+
Depending on the [`date_picker_entry_mode`][(c).], it will show either a Calendar
|
|
31
|
+
or an Input (TextField) for picking a date range.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
start_value: Optional[DateTimeValue] = None
|
|
35
|
+
"""
|
|
36
|
+
The selected start date that the picker should display.
|
|
37
|
+
|
|
38
|
+
Defaults to [`current_date`][(c).].
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
end_value: Optional[DateTimeValue] = None
|
|
42
|
+
"""
|
|
43
|
+
The selected end date that the picker should display.
|
|
44
|
+
|
|
45
|
+
Defaults to [`current_date`][(c).].
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
save_text: Optional[str] = None
|
|
49
|
+
"""
|
|
50
|
+
The label on the save button for the fullscreen calendar mode.
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
error_invalid_range_text: Optional[str] = None
|
|
54
|
+
"""
|
|
55
|
+
The message used when the date range is invalid (e.g. start date is after end date).
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
modal: bool = False
|
|
59
|
+
"""
|
|
60
|
+
Whether this date picker cannot be dismissed by clicking the area outside of it.
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
first_date: DateTimeValue = field(
|
|
64
|
+
default_factory=lambda: datetime(year=1900, month=1, day=1)
|
|
65
|
+
)
|
|
66
|
+
"""
|
|
67
|
+
The earliest allowable date on the date range. Defaults to `January 1, 1900`.
|
|
68
|
+
"""
|
|
69
|
+
|
|
70
|
+
last_date: DateTimeValue = field(
|
|
71
|
+
default_factory=lambda: datetime(year=2050, month=1, day=1)
|
|
72
|
+
)
|
|
73
|
+
"""
|
|
74
|
+
The latest allowable date on the date range. Defaults to `January 1, 2050`.
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
current_date: DateTimeValue = field(default_factory=lambda: datetime.now())
|
|
78
|
+
"""
|
|
79
|
+
The date representing today. It will be highlighted in the day grid.
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
keyboard_type: KeyboardType = KeyboardType.DATETIME
|
|
83
|
+
"""
|
|
84
|
+
The type of keyboard to use for editing the text.
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
date_picker_entry_mode: DatePickerEntryMode = DatePickerEntryMode.CALENDAR
|
|
88
|
+
"""
|
|
89
|
+
The initial mode of date entry method for the date picker dialog.
|
|
90
|
+
"""
|
|
91
|
+
|
|
92
|
+
help_text: Optional[str] = None
|
|
93
|
+
"""
|
|
94
|
+
The text that is displayed at the top of the header.
|
|
95
|
+
|
|
96
|
+
This is used to indicate to the user what they are selecting a date for.
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
cancel_text: Optional[str] = None
|
|
100
|
+
"""
|
|
101
|
+
The text that is displayed on the cancel button.
|
|
102
|
+
"""
|
|
103
|
+
|
|
104
|
+
confirm_text: Optional[str] = None
|
|
105
|
+
"""
|
|
106
|
+
The text that is displayed on the confirm button.
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
error_format_text: Optional[str] = None
|
|
110
|
+
"""
|
|
111
|
+
The error message displayed below the TextField if the entered date is not in the
|
|
112
|
+
correct format.
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
error_invalid_text: Optional[str] = None
|
|
116
|
+
"""
|
|
117
|
+
The error message displayed below the TextField if the date is earlier than
|
|
118
|
+
[`first_date`][(c).] or
|
|
119
|
+
later than [`last_date`][(c).].
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
field_start_hint_text: Optional[str] = None
|
|
123
|
+
"""
|
|
124
|
+
The text used to prompt the user when no text has been entered in the start field.
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
field_end_hint_text: Optional[str] = None
|
|
128
|
+
"""
|
|
129
|
+
The text used to prompt the user when no text has been entered in the end field.
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
field_start_label_text: Optional[str] = None
|
|
133
|
+
"""
|
|
134
|
+
The label for the start date text input field.
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
field_end_label_text: Optional[str] = None
|
|
138
|
+
"""
|
|
139
|
+
The label for the end date text input field.
|
|
140
|
+
"""
|
|
141
|
+
|
|
142
|
+
switch_to_calendar_icon: Optional[IconData] = None
|
|
143
|
+
"""
|
|
144
|
+
The name of the icon displayed in the corner of the dialog when
|
|
145
|
+
[`date_picker_entry_mode`][(c).]
|
|
146
|
+
is [`DatePickerEntryMode.INPUT`][flet.DatePickerEntryMode.INPUT].
|
|
147
|
+
|
|
148
|
+
Clicking on this icon changes the `date_picker_entry_mode` to
|
|
149
|
+
[`DatePickerEntryMode.CALENDAR`][flet.DatePickerEntryMode.CALENDAR].
|
|
150
|
+
|
|
151
|
+
If `None`, [`Icons.CALENDAR_TODAY`][flet.Icons.CALENDAR_TODAY] is used.
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
switch_to_input_icon: Optional[IconData] = None
|
|
155
|
+
"""
|
|
156
|
+
The name of the icon displayed in the corner of the dialog when
|
|
157
|
+
[`date_picker_entry_mode`][(c).]
|
|
158
|
+
is [`DatePickerEntryMode.CALENDAR`][flet.DatePickerEntryMode.CALENDAR].
|
|
159
|
+
|
|
160
|
+
Clicking on this icon changes the `date_picker_entry_mode` to
|
|
161
|
+
[`DatePickerEntryMode.INPUT`][flet.DatePickerEntryMode.INPUT].
|
|
162
|
+
|
|
163
|
+
If `None`, [`Icons.EDIT_OUTLINED`][flet.Icons.EDIT_OUTLINED] is used.
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
barrier_color: Optional[ColorValue] = None
|
|
167
|
+
"""
|
|
168
|
+
The color of the modal barrier that
|
|
169
|
+
darkens everything below the date picker.
|
|
170
|
+
|
|
171
|
+
If `None`, the [`DialogTheme.barrier_color`][flet.DialogTheme.barrier_color]
|
|
172
|
+
is used.
|
|
173
|
+
If it is also `None`, then `Colors.BLACK_54` is used.
|
|
174
|
+
"""
|
|
175
|
+
|
|
176
|
+
on_change: Optional[ControlEventHandler["DateRangePicker"]] = None
|
|
177
|
+
"""
|
|
178
|
+
Called when user clicks confirm button.
|
|
179
|
+
[`start_value`][(c).] and
|
|
180
|
+
[`end_value`][(c).] are updated with selected dates.
|
|
181
|
+
|
|
182
|
+
The `data` property of the event handler argument contains the selected dates.
|
|
183
|
+
"""
|
|
@@ -17,8 +17,7 @@ class Divider(Control):
|
|
|
17
17
|
"""
|
|
18
18
|
The color to use when painting the line.
|
|
19
19
|
|
|
20
|
-
If `None`, [`DividerTheme.color`][flet.
|
|
21
|
-
If that's is also `None`, defaults to [`Theme.divider_color`][flet.Theme.divider_color].
|
|
20
|
+
If `None`, [`DividerTheme.color`][flet.] is used.
|
|
22
21
|
"""
|
|
23
22
|
|
|
24
23
|
height: Optional[Number] = None
|
|
@@ -26,7 +25,7 @@ class Divider(Control):
|
|
|
26
25
|
The divider's height extent. The divider itself is always drawn as a horizontal
|
|
27
26
|
line that is centered within the height specified by this value.
|
|
28
27
|
|
|
29
|
-
If `None`, [`DividerTheme.space`][flet.
|
|
28
|
+
If `None`, [`DividerTheme.space`][flet.] is used.
|
|
30
29
|
If that's is also `None`, defaults to `16.0`.
|
|
31
30
|
"""
|
|
32
31
|
|
|
@@ -34,40 +33,42 @@ class Divider(Control):
|
|
|
34
33
|
"""
|
|
35
34
|
The amount of empty space to the leading edge of the divider.
|
|
36
35
|
|
|
37
|
-
If `None`, [`DividerTheme.leading_indent`][flet.
|
|
36
|
+
If `None`, [`DividerTheme.leading_indent`][flet.] is used.
|
|
38
37
|
If that's is also `None`, defaults to `0.0`.
|
|
39
38
|
"""
|
|
40
39
|
|
|
41
40
|
thickness: Optional[Number] = None
|
|
42
41
|
"""
|
|
43
|
-
The thickness of the line drawn within the divider.
|
|
44
|
-
|
|
45
|
-
A divider with a thickness of `0.0` is always drawn as a line with a
|
|
42
|
+
The thickness of the line drawn within the divider.
|
|
43
|
+
|
|
44
|
+
A divider with a thickness of `0.0` is always drawn as a line with a
|
|
46
45
|
height of exactly one device pixel.
|
|
47
46
|
|
|
48
|
-
If `None`, [`DividerTheme.thickness`][flet.
|
|
49
|
-
If that
|
|
47
|
+
If `None`, [`DividerTheme.thickness`][flet.] is used.
|
|
48
|
+
If that is also `None`, defaults to `0.0`.
|
|
50
49
|
"""
|
|
51
50
|
|
|
52
51
|
trailing_indent: Optional[Number] = None
|
|
53
52
|
"""
|
|
54
53
|
The amount of empty space to the trailing edge of the divider.
|
|
55
54
|
|
|
56
|
-
If `None`, [`DividerTheme.trailing_indent`][flet.
|
|
57
|
-
If that
|
|
55
|
+
If `None`, [`DividerTheme.trailing_indent`][flet.] is used.
|
|
56
|
+
If that is also `None`, defaults to `0.0`.
|
|
58
57
|
"""
|
|
59
58
|
|
|
60
59
|
def before_update(self):
|
|
61
60
|
super().before_update()
|
|
62
|
-
assert (
|
|
63
|
-
|
|
64
|
-
)
|
|
65
|
-
assert (
|
|
66
|
-
|
|
67
|
-
)
|
|
68
|
-
assert (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
61
|
+
assert self.height is None or self.height >= 0, (
|
|
62
|
+
f"height must be greater than or equal to 0, got {self.height}"
|
|
63
|
+
)
|
|
64
|
+
assert self.thickness is None or self.thickness >= 0, (
|
|
65
|
+
f"thickness must be greater than or equal to 0, got {self.thickness}"
|
|
66
|
+
)
|
|
67
|
+
assert self.leading_indent is None or self.leading_indent >= 0, (
|
|
68
|
+
"leading_indent must be greater than or equal to 0, "
|
|
69
|
+
f"got {self.leading_indent}"
|
|
70
|
+
)
|
|
71
|
+
assert self.trailing_indent is None or self.trailing_indent >= 0, (
|
|
72
|
+
"trailing_indent must be greater than or equal to 0, "
|
|
73
|
+
f"got {self.trailing_indent}"
|
|
74
|
+
)
|
|
@@ -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
|
|
@@ -33,7 +34,7 @@ class DropdownOption(Control):
|
|
|
33
34
|
|
|
34
35
|
key: Optional[str] = None
|
|
35
36
|
"""
|
|
36
|
-
Option's key. If not specified [`text`][
|
|
37
|
+
Option's key. If not specified [`text`][(c).] will
|
|
37
38
|
be used as fallback.
|
|
38
39
|
"""
|
|
39
40
|
|
|
@@ -82,7 +83,7 @@ class Dropdown(LayoutControl):
|
|
|
82
83
|
|
|
83
84
|
value: Optional[str] = None
|
|
84
85
|
"""
|
|
85
|
-
[`key`][
|
|
86
|
+
[`key`][(c).] value of the selected option.
|
|
86
87
|
"""
|
|
87
88
|
|
|
88
89
|
options: list[DropdownOption] = field(default_factory=list)
|
|
@@ -109,7 +110,7 @@ class Dropdown(LayoutControl):
|
|
|
109
110
|
|
|
110
111
|
elevation: Optional[ControlStateValue[Optional[Number]]] = 8
|
|
111
112
|
"""
|
|
112
|
-
The dropdown's menu elevation in various [`ControlState`][flet.
|
|
113
|
+
The dropdown's menu elevation in various [`ControlState`][flet.]
|
|
113
114
|
states.
|
|
114
115
|
"""
|
|
115
116
|
|
|
@@ -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.
|
|
@@ -190,7 +198,7 @@ class Dropdown(LayoutControl):
|
|
|
190
198
|
bgcolor: Optional[ControlStateValue[ColorValue]] = None
|
|
191
199
|
"""
|
|
192
200
|
The background color of the dropdown menu
|
|
193
|
-
in various [`ControlState`][flet.
|
|
201
|
+
in various [`ControlState`][flet.]
|
|
194
202
|
states.
|
|
195
203
|
"""
|
|
196
204
|
|
|
@@ -218,8 +226,8 @@ class Dropdown(LayoutControl):
|
|
|
218
226
|
|
|
219
227
|
error_style: Optional[TextStyle] = None
|
|
220
228
|
"""
|
|
221
|
-
The [`TextStyle`][flet.
|
|
222
|
-
[`error_text`][
|
|
229
|
+
The [`TextStyle`][flet.] to use for
|
|
230
|
+
[`error_text`][(c).].
|
|
223
231
|
"""
|
|
224
232
|
|
|
225
233
|
error_text: Optional[str] = None
|
|
@@ -236,7 +244,7 @@ class Dropdown(LayoutControl):
|
|
|
236
244
|
|
|
237
245
|
text_style: Optional[TextStyle] = None
|
|
238
246
|
"""
|
|
239
|
-
The [`TextStyle`][flet.
|
|
247
|
+
The [`TextStyle`][flet.] to use for text
|
|
240
248
|
in input text field.
|
|
241
249
|
"""
|
|
242
250
|
|
|
@@ -253,7 +261,7 @@ class Dropdown(LayoutControl):
|
|
|
253
261
|
|
|
254
262
|
label_style: Optional[TextStyle] = None
|
|
255
263
|
"""
|
|
256
|
-
The [`label`][
|
|
264
|
+
The [`label`][(c).]'s text style.
|
|
257
265
|
"""
|
|
258
266
|
|
|
259
267
|
border: Optional[InputBorder] = None
|
|
@@ -309,7 +317,7 @@ class Dropdown(LayoutControl):
|
|
|
309
317
|
filled: bool = False
|
|
310
318
|
"""
|
|
311
319
|
Whether the decoration's container is filled with theme
|
|
312
|
-
[`fill_color`][
|
|
320
|
+
[`fill_color`][(c).].
|
|
313
321
|
"""
|
|
314
322
|
|
|
315
323
|
fill_color: Optional[ColorValue] = None
|
|
@@ -337,8 +345,8 @@ class Dropdown(LayoutControl):
|
|
|
337
345
|
|
|
338
346
|
hint_style: Optional[TextStyle] = None
|
|
339
347
|
"""
|
|
340
|
-
The [`TextStyle`][flet.
|
|
341
|
-
[`hint_text`][
|
|
348
|
+
The [`TextStyle`][flet.] to use for
|
|
349
|
+
[`hint_text`][(c).].
|
|
342
350
|
"""
|
|
343
351
|
|
|
344
352
|
helper_text: Optional[str] = None
|
|
@@ -353,8 +361,8 @@ class Dropdown(LayoutControl):
|
|
|
353
361
|
|
|
354
362
|
helper_style: Optional[TextStyle] = None
|
|
355
363
|
"""
|
|
356
|
-
The [`TextStyle`][flet.
|
|
357
|
-
[`helper_text`][
|
|
364
|
+
The [`TextStyle`][flet.] to use for
|
|
365
|
+
[`helper_text`][(c).].
|
|
358
366
|
"""
|
|
359
367
|
|
|
360
368
|
def __contains__(self, item):
|
|
@@ -39,21 +39,21 @@ class ExpansionTile(LayoutControl, AdaptiveControl):
|
|
|
39
39
|
"""
|
|
40
40
|
A `Control` to display as primary content of the tile.
|
|
41
41
|
|
|
42
|
-
Typically a [`Text`][flet.
|
|
42
|
+
Typically a [`Text`][flet.] control.
|
|
43
43
|
"""
|
|
44
44
|
|
|
45
45
|
controls: Optional[list[Control]] = None
|
|
46
46
|
"""
|
|
47
47
|
The controls to be displayed when the tile expands.
|
|
48
48
|
|
|
49
|
-
Typically a list of [`ListTile`][flet.
|
|
49
|
+
Typically a list of [`ListTile`][flet.] controls.
|
|
50
50
|
"""
|
|
51
51
|
|
|
52
52
|
subtitle: Optional[StrOrControl] = None
|
|
53
53
|
"""
|
|
54
54
|
Additional content displayed below the title.
|
|
55
55
|
|
|
56
|
-
Typically a [`Text`][flet.
|
|
56
|
+
Typically a [`Text`][flet.] control.
|
|
57
57
|
"""
|
|
58
58
|
|
|
59
59
|
leading: Optional[IconDataOrControl] = None
|
|
@@ -65,7 +65,7 @@ class ExpansionTile(LayoutControl, AdaptiveControl):
|
|
|
65
65
|
"""
|
|
66
66
|
A `Control` to display after the title.
|
|
67
67
|
|
|
68
|
-
Typically an [`Icon`][flet.
|
|
68
|
+
Typically an [`Icon`][flet.] control.
|
|
69
69
|
"""
|
|
70
70
|
|
|
71
71
|
controls_padding: Optional[PaddingValue] = None
|
|
@@ -163,8 +163,7 @@ class ExpansionTile(LayoutControl, AdaptiveControl):
|
|
|
163
163
|
|
|
164
164
|
collapsed_shape: Optional[OutlinedBorder] = None
|
|
165
165
|
"""
|
|
166
|
-
The tile's border shape when the sublist is collapsed.
|
|
167
|
-
of [`OutlinedBorder`][flet.OutlinedBorder]
|
|
166
|
+
The tile's border shape when the sublist is collapsed.
|
|
168
167
|
"""
|
|
169
168
|
|
|
170
169
|
dense: Optional[bool] = None
|
|
@@ -6,7 +6,7 @@ from flet.controls.material.button import Button
|
|
|
6
6
|
class FilledButton(Button):
|
|
7
7
|
"""
|
|
8
8
|
Filled buttons have the most visual impact after the
|
|
9
|
-
[`FloatingActionButton`][flet.
|
|
9
|
+
[`FloatingActionButton`][flet.], and is typically used for
|
|
10
10
|
important, final actions that complete a flow, like "Save",
|
|
11
11
|
"Join now", or "Confirm".
|
|
12
12
|
"""
|
|
@@ -85,7 +85,7 @@ class FloatingActionButton(LayoutControl):
|
|
|
85
85
|
|
|
86
86
|
clip_behavior: ClipBehavior = ClipBehavior.NONE
|
|
87
87
|
"""
|
|
88
|
-
Defines how the [`content`][
|
|
88
|
+
Defines how the [`content`][(c).] is clipped.
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
91
|
elevation: Optional[Number] = None
|
|
@@ -144,7 +144,7 @@ class FloatingActionButton(LayoutControl):
|
|
|
144
144
|
"""
|
|
145
145
|
The URL to open when this button is clicked.
|
|
146
146
|
|
|
147
|
-
Additionally, if [`on_click`][
|
|
147
|
+
Additionally, if [`on_click`][(c).] event callback
|
|
148
148
|
is provided, it is fired after that.
|
|
149
149
|
"""
|
|
150
150
|
|