modern_form_popupmenu library

Classes

CheckedPopupMenuItem<T>
An item with a checkmark in a material design popup menu.
PopupMenuButton<T>
Displays a menu when pressed and calls onSelected when the menu is dismissed because an item was selected. The value passed to onSelected is the value of the selected menu item.
PopupMenuButtonState<T>
The State for a PopupMenuButton.
PopupMenuDivider
A horizontal divider in a material design popup menu.
PopupMenuEntry<T>
A base class for entries in a material design popup menu.
PopupMenuItem<T>
An item in a material design popup menu.
PopupMenuItemState<T, W extends PopupMenuItem<T>>
The State for PopupMenuItem subclasses.

Functions

modernFormPopupMenuPosition(BuildContext context, ModernFormPopupMenuLocation? menuLocation) RelativeRect
showMenu<T>({required BuildContext context, required RelativeRect position, required List<PopupMenuEntry<T>> items, T? initialValue, double? elevation, String? semanticLabel, ShapeBorder? shape, Color? color, bool captureInheritedThemes = true, bool useRootNavigator = false, double? maxHeight}) Future<T?>
Show a popup menu that contains the items at position.

Typedefs

PopupMenuCanceled = void Function()
Signature for the callback invoked when a PopupMenuButton is dismissed without selecting an item.
PopupMenuItemBuilder<T> = List<PopupMenuEntry<T>> Function(BuildContext context)
Signature used by PopupMenuButton to lazily construct the items shown when the button is pressed.
PopupMenuItemSelected<T> = void Function(T value)
Signature for the callback invoked when a menu item is selected. The argument is the value of the PopupMenuItem that caused its menu to be dismissed.