Portal

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

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

Usage

FPortal(...)

FPortal(
  controller: OverlayPortalController(),
  shift: FPortalFollowerShift.flip,
  followerAnchor: Alignment.topCenter,
  followerBuilder: (context) => const Text('follower'),
  targetAnchor: Alignment.bottomCenter,
  child: const Text('target'),
);