Skip to content
pubscout

overlay_dialog

0.2.2, released 3 years ago by an unverified publisher

Shows platform dialogs via route overlays without creating new routes.

$ flutter pub add overlay_dialog
Source repository

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.

Works with

Packages commonly used together with overlay_dialog: ones it builds on, ones built on it, and its own family.