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,
barrier: Container(color: Colors.blue),
portalBuilder: (context, controller) => const Text('portal'),
builder: (context, controller, child) => child!,
child: const Text('child'),
);
Last updated on