Skip to content
pubscout

popover

0.5.1, released 6 weeks ago by minikin.me

Displays a transient iOS-style popover view above other content pointing at a control.

WASM-ready
$ flutter pub add popover
Source repository

What it does

A Flutter popover package that provides transient views appearing above, below, or beside controls with an arrow pointing at them. It measures the calling widget context and places the popover body while supporting iOS, Android, macOS, Windows, Linux, and the web. It handles custom positioning, animations, dark mode, and native platform styles.

AI-written summary of version 0.5.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display context menus or dropdown options in an iOS or macOS popover style.
  • You want a transient pop-up view that automatically positions itself based on screen boundaries and safe areas.

Skip it when

  • You are building full-screen dialogs or simple bottom sheets that do not require an arrow pointer.
  • You need complex form wizards that span multiple screens.

Strengths

  • Supports multiple platforms including iOS, Android, macOS, Windows, Linux, and web.
  • Matches native platform arrow styles, shadows, and transitions (like iOS Liquid Glass and macOS NSPopover).
  • Depends only on package:flutter/widgets.dart and works across Material and Cupertino apps.

Weaknesses

  • Requires manual wrapping of non-transparent Material components like ListTile or InkWell to prevent text/theme rendering issues.
  • Strict minimum version dependencies (Flutter 3.47.0+ and Dart 3.13.0+).

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

No special native permissions or build runner steps required.

final choice = await showPopover<String>(
  context: context,
  width: 160,
  height: 112,
  bodyBuilder: (context) => Material(
    type: MaterialType.transparency,
    child: Column(
      children: [
        for (final item in ['Copy', 'Share'])
          ListTile(
            title: Text(item),
            onTap: () => Navigator.pop(context, item),
          ),
      ],
    ),
  ),
);

Alternatives

Packages that do the same job and could replace popover.