native_dialog_plus
1.1.2, released 7 months ago by an unverified publisher
Shows native alert and confirm dialogs on iOS, Android, Web, and macOS.
What it does
Provides a simple API to display platform‑native alert and confirmation dialogs. The dialogs use the OS UI on each platform and support basic actions and optional cancellation. It works on mobile, web and macOS with minimal configuration.
AI-written summary of version 1.1.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a quick native‑look dialog without custom UI design
- Cross‑platform apps that require simple alerts or confirmations
- You want a lightweight solution without extra dependencies
Skip it when
- You need more than three actions on Android
- You require custom styling, theming, or complex layouts
- You need full‑screen or modal dialog experiences
Strengths
- Uses true native UI on each platform
- Works on Android, iOS, Web, and macOS
- Very small API surface and easy to integrate
Weaknesses
- Android limited to three actions (default, cancel, destructive)
- Limited customization and theming options
- No support for complex dialog content
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:native_dialog_plus/native_dialog_plus.dart';
NativeDialogPlus(
title: 'Test',
message: 'Hello',
actions: [
NativeDialogPlusAction(text: 'OK', onPressed: () => print('OK')),
NativeDialogPlusAction(text: 'Cancel', style: NativeDialogPlusActionStyle.cancel),
],
).show();Alternatives
Packages that do the same job and could replace native_dialog_plus.
- adaptive_dialog
Shows platform‑adaptive alert dialogs and action sheets
93Compare - confirm_dialog
An easy-to-use confirm dialog widget for Flutter with a JS-like syntax.
45Compare - ndialog
Easily customizable dialogs, progress dialogs, zoomable dialogs, and animated transitions in Flutter.
79Compare - info_popup
A customizable tooltip and popup overlay widget with optional target highlighting.
59Compare
Works with
Packages commonly used together with native_dialog_plus: ones it builds on, ones built on it, and its own family.