core/menus library

Dropdown menus with keyboard support.

  • SimpleMenu: pick one option from a list.
  • FilteredMenu: type to filter a long list, then pick an option.
  • SuggestionField: type any value, or pick a suggestion from a list.
  • IconMenu: pick one of several icons, such as an alignment option.
  • MenuDropDown: a bare arrow button that opens a list.

While a menu is open, the up and down arrow keys move the highlight, Enter picks the highlighted option and Escape closes it.

Classes

FilteredMenu<T>
A searchable dropdown: a text field that filters a list of options as the user types.
IconMenu<T>
A small button showing the selected icon, which opens a column of other icons to choose from.
IconMenuItem<T>
One option in an IconMenu.
A dropdown arrow button that opens a list of items.
One option in a SimpleMenu or FilteredMenu.
SimpleMenu<T>
A basic dropdown: a box showing the selected option, which opens a list of options when tapped.
SuggestionField
A text field with a dropdown of suggested values beside it.

Enums

AlignType
How a dropdown list lines up with the field it belongs to.