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 viewAnchor 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
| Control | Type | Options or range | Help |
|---|---|---|---|
| Surface title | text | ||
| Preferred side | choice | bottom, top, start, end | |
| Maximum panel width | number | 180.0–360.0 | |
| Show arrow | toggle | ||
| Allow outside dismissal | toggle | ||
| Animate opening and closing | toggle |