Skip to Content
Forui 0.11.0 is released 🎉

Portal

A portal renders a portal widget that “floats” on top of a child widget.

This widget is typically used to create other high-level widgets, e.g., popover or tooltip. You should prefer those high-level widgets unless you’re creating a custom widget.

Usage

FPortal(...)

FPortal( controller: OverlayPortalController(), spacing: FPortalSpacing.zero, shift: FPortalShift.flip, offset: Offset.zero, portalConstraints: const FAutoWidthPortalConstraints(), portalAnchor: Alignment.topCenter, childAnchor: Alignment.bottomCenter, viewInsets: EdgeInsets.zero, portalBuilder: (context) => const Text('portal'), child: const Text('child'), );
Last updated on