NIB / PLAYGROUND
Context menu playground — NibComponents
Try context menu in Flutter. Offer pointer and keyboard access to grouped actions, disabled entries, and nested choices.
Open interactive viewOffer pointer and keyboard access to grouped actions, disabled entries, and nested choices.
Read the full component guide and API
Public widgets and APIs
- NibContextMenu
- NibMenuDivider
- NibMenuEntry
- NibMenuItem
- NibMenuSection
- showNibContextMenu
Example Dart code
NibContextMenu(
items: const [
NibMenuSection('Reading list'),
NibMenuItem(label: 'Pin note'),
NibMenuDivider(),
NibMenuItem(label: 'Move to', submenu: [
NibMenuItem(label: 'Later'),
NibMenuItem(label: 'Today'),
]),
],
onItemSelected: (item) { /* Apply one selected action. */ },
child: const Padding(padding: EdgeInsets.all(20), child: Text('A note')),
)Playground controls
| Control | Type | Options or range | Help |
|---|---|---|---|
| Target note | text | ||
| Disable Pin note | toggle | ||
| Animate opening and closing | toggle |