Skip to content
pubscout

adaptive_dialog

3.1.0, released 9 days ago by mono0926.com

Shows platform‑adaptive alert dialogs and action sheets

WASM-readyUses material_ui
$ flutter pub add adaptive_dialog
Source repository

What it does

Provides a simple API to display alert dialogs, confirmation dialogs, text input dialogs, and modal action sheets that adapt to iOS, Android, macOS, Windows, Linux, and Web. The dialogs automatically use Cupertino or Material styles based on the platform.

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

Use it when

  • Need a quick confirmation dialog
  • Need a text input dialog that blocks destructive actions
  • Need a modal action sheet for iOS‑style options
  • Need cross‑platform dialog support without custom styling

Skip it when

  • You need highly custom dialog designs
  • You are targeting older Flutter versions (<3.47)
  • You require advanced theming beyond the default

Strengths

  • Automatic platform adaptation
  • Simple, declarative API
  • Supports Web (WASM) with fallback
  • No build_runner or codegen required

Weaknesses

  • Requires Flutter 3.47+ and Dart 3.13+
  • Limited customization beyond the provided options
  • No support for custom dialog widgets

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
7
import 'package:adaptive_dialog/adaptive_dialog.dart';

await showOkAlertDialog(
  context: context,
  title: 'Delete Item',
  message: 'Are you sure you want to delete this item?'
);

Alternatives

Packages that do the same job and could replace adaptive_dialog.

  • info_popup

    A customizable tooltip and popup overlay widget with optional target highlighting.

  • native_dialog_plus

    Shows native alert and confirm dialogs on iOS, Android, Web, and macOS.

  • top_modal_sheet

    A simple modal sheet implementation that appears from the top of the screen.

  • unified_popups

    Unified overlay popup system for Flutter offering toast, loading, confirm, sheet, menu and more without needing a BuildContext.

Works with

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