Foundation

Point Portal

A "floating" portal anchored at a specific point within a child widget's coordinate space.

This widget is typically used to create other high-level widgets, e.g., context menu. You should prefer those high-level widgets unless you're creating a custom widget.

Usage

FPointPortal(...)

1FPointPortal(
2 point: const Offset(100, 100),
3 portalBuilder: (context, controller) => const Text('Portal content'),
4 builder: (context, controller, child) => child!,
5 child: const Text('Child'),
6 barrier: null,
7)

On this page