Skip to Content
Forui 0.11.0 is released 🎉

Popover Menu

A popover menu displays a menu in a portal aligned to a child.

Usage

FPopoverMenu(...)

FPopoverMenu( popoverController: FPopoverController(vsync: this), scrollController: ScrollController(), cacheExtent: 100, maxHeight: 200, dragStartBehavior: DragStartBehavior.start, menuAnchor: Alignment.topCenter, childAnchor: Alignment.bottomCenter, directionPadding: false, hideOnTapOutside: FHidePopoverRegion.anywhere, shift: FPortalShift.flip, menu: [ FTileGroup( children: [], ), ], child: const Placeholder(), );

FPopoverMenu.automatic()

FPopoverMenu.automatic( popoverController: FPopoverController(vsync: this), scrollController: ScrollController(), cacheExtent: 100, maxHeight: 200, dragStartBehavior: DragStartBehavior.start, menuAnchor: Alignment.topCenter, childAnchor: Alignment.bottomCenter, directionPadding: false, hideOnTapOutside: FHidePopoverRegion.none, shift: FPortalShift.flip, menu: [ FTileGroup( children: [], ), ], child: const Placeholder(), );
Last updated on