Context actions opened by right-clicking or long-pressing the target.
TxContextMenu
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| child | Widget | required | Content or target widget. |
| items | List<TxAction> | const [] | Entries; replaced by dataSource when bound. |
| dataSource | Object? | null | List, configuration or DataSource instance; takes precedence over items. |
| onItemClick | ValueChanged<TxAction>? | null | Reports the activated entry; arguments follow the callback signature. |
| disabled | bool | false | Disables interaction. |
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Widget example() {
return TxContextMenu(items: const [TxAction(id: 'copy', text: 'Copy')], onItemClick: (action) {}, child: const Text('Right click here'));
}