overlay_dialog
0.2.2, released 3 years ago by an unverified publisher
Shows platform dialogs via route overlays without creating new routes.
What it does
A Flutter package that allows developers to show Material, Cupertino, or custom dialogs directly on the current route's overlay. This avoids creating new routes, which helps preserve page lifecycle events and simplifies rapid open and close handling.
AI-written summary of version 0.2.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need dialogs that do not trigger route changes or interfere with ModalRoute.of(context).isCurrent checks
- You want to rapidly open and close dialogs using a singleton helper without managing complex async states
- You need to display Material or Cupertino alert and progress dialogs using standard theme setups
Skip it when
- You rely on standard Navigator route stacks for dialogs
- You need a production-ready package that guarantees stable APIs before version 1.0
Strengths
- Avoids creating new routes for dialogs, keeping page lifecycles clean
- Supports both Material and Cupertino styling based on app theme
- Provides a singleton DialogHelper for simple show and hide logic
Weaknesses
- API may change as development is ongoing prior to version 1.0
- License is unknown in pubspec metadata
- Missing some features like input dialogs and custom animations (listed in todos)
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
DialogWidget.alert(
closable: true,
style: DialogStyle.material,
title: "Title",
content: "Content",
actions: [
DialogAction(
title: "Button One",
handler: buttonOneHandler,
isDestructive: true,
),
],
)Alternatives
Packages that do the same job and could replace overlay_dialog.
- flutter_easy_dialogs
Show overlay dialogs, tooltips, and alerts anywhere in a Flutter app without requiring BuildContext.
75Compare - unified_popups
Unified overlay popup system for Flutter offering toast, loading, confirm, sheet, menu and more without needing a BuildContext.
63Compare - progress_dialog_null_safe
A null-safe Flutter package for showing customizable progress dialogs.
53Compare - flutter_dialogs
A lightweight and platform-aware plugin for showing dialogs and alerts.
50Compare
Works with
Packages commonly used together with overlay_dialog: ones it builds on, ones built on it, and its own family.