Skip to content

Commit e9b27bd

Browse files
authored
menu_width property (#404)
1 parent 69d77b1 commit e9b27bd

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/controls/dropdown.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Dropdown
66
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.
77

88
:::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.
1010

1111
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).
1212

@@ -244,9 +244,13 @@ An optional Icon at the front of the text input field inside the decoration box
244244

245245
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.
246246

247-
### `max_menu_height`
247+
### `menu_height`
248248

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.
250254

251255
### `options`
252256

@@ -408,6 +412,10 @@ instead.**
408412

409413
The height of the items/options in the dropdown menu.
410414

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+
411419
### ~~`options_fill_horizontally`~~
412420

413421
Whether the dropdown's inner contents to horizontally fill its parent.

0 commit comments

Comments
 (0)