You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/controls/dropdown.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ sidebar_label: Dropdown
6
6
Dropdown is used to help people make a choice from a menu and put the selected item into the text input field. It's also possible to filter the list based on the text input or search one item in the menu list.
7
7
8
8
:::info
9
-
Since version 0.27.0, Flet uses [DropdownMenu](https://api.flutter.dev/flutter/material/DropdownMenu) flutter widget for [Dropdown](/docs/controls/dropdown) control, which is a Material 3 version of previously used DropdownButton.
9
+
Since version 0.27.0, Flet uses [DropdownMenu](https://api.flutter.dev/flutter/material/DropdownMenu-class.html) flutter widget for [Dropdown](/docs/controls/dropdown) control, which is a Material 3 version of previously used DropdownButton.
10
10
11
11
Some properties of previous Dropdown implementation are not available in the new version and were "stubbed" - they will not break your program but don't do anything. See the list of deprecated properties [here](#deprecated-dropdown-properties-and-events).
12
12
@@ -244,9 +244,13 @@ An optional Icon at the front of the text input field inside the decoration box
244
244
245
245
Defaults to null. If this is not null, the menu items will have extra paddings to be aligned with the text in the text field.
246
246
247
-
### `max_menu_height`
247
+
### `menu_height`
248
248
249
-
The maximum height of the dropdown menu. If this is null, the menu will display as many items as possible on the screen.
249
+
The height of the dropdown menu. If this is null, the menu will display as many items as possible on the screen.
250
+
251
+
### `menu_width`
252
+
253
+
The width of the dropdown menu. If this is null, the menu width will be the same as input textfield width.
250
254
251
255
### `options`
252
256
@@ -408,6 +412,10 @@ instead.**
408
412
409
413
The height of the items/options in the dropdown menu.
410
414
415
+
### ~~`max_menu_height`~~
416
+
417
+
The maximum height of the dropdown menu. If this is null, the menu will display as many items as possible on the screen.
418
+
411
419
### ~~`options_fill_horizontally`~~
412
420
413
421
Whether the dropdown's inner contents to horizontally fill its parent.
0 commit comments