Foundation

Portal

A "floating" portal anchored relative to a child widget's edge.

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(...)

1FPortal(
2 traversalGrouped: true,
3 portalBuilder: (context, controller) => const Text('Portal content'),
4 builder: (context, controller, child) => child!,
5 child: const Text('Child'),
6 barrier: null,
7)

Visualization

On this page