Read page as text

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 view

Offer 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

ControlTypeOptions or rangeHelp
Target notetext
Disable Pin notetoggle
Animate opening and closingtoggle