Portal
A portal renders a portal widget that “floats” on top of a child widget.
Preview
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