Skip to content
pubscout

flutter_popup_card

0.1.2, released 8 months ago by currie.page

Create customizable popup cards that overlay your Flutter app.

WASM-ready
$ flutter pub add flutter_popup_card
Source repository

What it does

Provides a plugin to display popup cards and custom widgets overtop of your main application. Supports both screen-aligned positioning with offsets and anchor-aligned positioning relative to specific widgets.

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

Use it when

  • You need to display lightweight dialogs or cards over your main interface.
  • You want to position a popup relative to a specific target widget like an icon button.
  • You need customizable animations, dimming, and safe area handling for popups.

Skip it when

  • You need complex multi-screen navigation flows.
  • You are building a full screen routing mechanism.

Strengths

  • Supports anchor-aligned positioning using GlobalKeys.
  • Includes built-in opening and closing animations and background dimming.
  • Simple API that closely mimics Flutter's built-in `showDialog`.

Weaknesses

  • Limited to single popup card overlays rather than complete overlay management systems.
  • No built-in tooltip or complex contextual menu features.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
showPopupCard(
  context: context,
  builder: (context) {
    return PopupCard(
      elevation: 8,
      color: Colors.yellow,
      child: const Padding(
        padding: EdgeInsets.all(16.0),
        child: Text('This is a popup card'),
      ),
    );
  },
);

Alternatives

Packages that do the same job and could replace flutter_popup_card.