components/popover library

Classes

CNPopover
A native popover anchored to a Flutter widget: a bubble with an arrow pointing at the widget, drawn by AppKit or UIKit, with Liquid Glass on macOS 26 and iOS 26.
CNPopoverAction
A button at the bottom of a CNPopover. Pressing it closes the popover.
CNPopoverContent
What a CNPopover shows, top to bottom: title and message, gauges, rows, toggles, then actions as buttons.
CNPopoverGauge
A labelled bar in a CNPopover that shows how full something is, such as storage used or a quota (#135).
CNPopoverRow
A row of a CNPopover: a native list row that closes the popover when it is tapped, making CNPopover.show return id.
CNPopoverToggle
A switch in a CNPopover.

Enums

CNPopoverActionStyle
How a CNPopoverAction button looks and behaves.
CNPopoverEdge
The side of its anchor a CNPopover prefers to appear on.

Functions

debugBuildPopoverPayload({required int session, required CNPopoverContent content, required Rect anchor, required String edge, double? width, int? tint, bool? isDark, BuildContext? context}) → Map<String, Object?>
Builds the payload of CNPopover.show's show call.
debugEncodePopoverContent(CNPopoverContent content, {BuildContext? context}) → Map<String, Object?>
Encodes content for the native side.