Read page as text

NIB / PLAYGROUND

Popover playground — NibComponents

Try popover in Flutter. Anchor a small interactive task to its trigger and close it through a local scope.

Open interactive view

Anchor a small interactive task to its trigger and close it through a local scope.

Read the full component guide and API

Public widgets and APIs

  • NibPopover
  • NibPopoverPlacement
  • NibPopoverScope
  • NibPopoverController

Example Dart code

NibPopover(
  trigger: const Padding(
    padding: EdgeInsets.all(12), child: Text('Choose a tag'),
  ),
  content: Builder(builder: (popoverContext) => NibButton(
    label: 'Pick Flutter',
    onPressed: () => NibPopoverScope.of(popoverContext).close(),
  )),
)

Playground controls

ControlTypeOptions or rangeHelp
Surface titletext
Preferred sidechoicebottom, top, start, end
Maximum panel widthnumber180.0–360.0
Show arrowtoggle
Allow outside dismissaltoggle
Animate opening and closingtoggle