keep_keyboard_popup_menu library

Classes

KeepKeyboardPopupMenuButton
KeepKeyboardPopup version of PopupMenuButton. This is basically a remix of PopupMenuButton and WithKeepKeyboardPopupMenu, you can find the documentation of the properties from them.
KeepKeyboardPopupMenuItem
KeepKeyboardPopup version of PopupMenuItem. This is quite different from PopupMenuItem, this works more like a ListTile.
WithKeepKeyboardPopupMenu
Allow it's child (from childBuilder) to open a popup menu (from either menuBuilder or menuItemBuilder) with customizable background (though backgroundBuilder) at customizable position (though calculatePopupPosition).
WithKeepKeyboardPopupMenuState

Typedefs

CalculatePopupPosition = Offset Function(Size menuSize, Rect overlayRect, Rect buttonRect)
Used to calculate the position of the popup. menuSize: size of the context menu, always smaller than overlayRect.size overlayRect: rect of the screen excluding keyboard and status bar buttonRect: rect of the button that triggered context menu
ChildBuilder = Widget Function(BuildContext context, OpenPopupFn openPopup)
Used to build the widget that is going to open the popup menu. This widget can call openPopup to open the popup menu.
ClosePopupFn = Future<void> Function()
Function type to close the popup menu, returns a future that resolves when the closing animation stops.
Used to build the custom widget inside the popup menu. The widget can call openPopup to open the popup menu. WithKeepKeyboardPopupMenu will then wrap your widget in a ListView.
Used to build the item list inside the popup menu. Widgets can call openPopup to open the popup menu. WithKeepKeyboardPopupMenu will then wrap this list in a ListView with vertical padding of _kMenuVerticalPadding.
OpenPopupFn = Future<void> Function()
Function type to open the popup menu, returns a future that resolves when the opening animation stops.
PopupMenuBackgroundBuilder = Widget Function(BuildContext context, Widget child)
Used to build the background of the popup menu. child is the content of the popup menu.