CupertinoContextMenu

A full-screen modal route that opens when the child is long-pressed.

Example

CupertinoContextMenu(
  child: Container(
    width: 100,
    height: 60,
    color: Colors.red,
  ),
  actions: <Widget>[
    CupertinoContextMenuAction(
      child: const Text('Action one'),
      onPressed: () {
        Navigator.pop(context);
      },
    ),
    CupertinoContextMenuAction(
      child: const Text('Action two'),
      onPressed: () {
        Navigator.pop(context);
      },
    ),
  ],
)

Related Links