flutter_popup_card
0.1.2, released 8 months ago by currie.page
Create customizable popup cards that overlay your Flutter app.
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.
- material_new_shapes
Provides Material 3 shape definitions (e.g., RoundedPolygon, Cubic) for Flutter UI.
48Compare - unified_popups
Unified overlay popup system for Flutter offering toast, loading, confirm, sheet, menu and more without needing a BuildContext.
63Compare - parallax_cards
A Flutter package for scrolling parallax effect and custom card overlays
41Compare - focusable_control_builder
Easily create custom controls that respond correctly to mouse and keyboard.
60Compare