native_dialog_plus 1.0.9 copy "native_dialog_plus: ^1.0.9" to clipboard
native_dialog_plus: ^1.0.9 copied to clipboard

A flutter minimalistic plugin to show native Dialogs!, Compatible with iOS and Android, uses the native UI on each platform to show alert and confirm dialogs.

A flutter minimalistic plugin to show native Dialogs!!

Description #

Android

Native Dialog Plus uses the native UI on each platform to show alert and confirm dialogs.

IMPORTANT

Due to framework limitations Android is limited to the maximum of 3 actions one of each NativeDialogPlusActionStyle style therefore its limited to one defaultStyle, cancel and destructive each, the order of the actions in the list does not change the position in the dialog.

IOS

iOS has no limit on the number of actions.

Buttons are disabled if no callback is passed on onPressed.

Usage #

Alert dialog #

import 'package:native_dialog_plus/native_dialog_plus.dart';

NativeDialogPlus(
    actions: [
    NativeDialogPlusAction(
            text: 'Now',
            style: NativeDialogPlusActionStyle.destructive,
        ),
        NativeDialogPlusAction(
            text: "BZ'H",
            onPressed: () {
                print("Moshiach vibes");
            },
            style: NativeDialogPlusActionStyle.defaultStyle,
        ),
    ],
    title: 'This is a test dialog',
    message: 'Moshiach NOW',
).show();
copied to clipboard

Android

android-alert

iOS

ios-alert

Web

web-alert
13
likes
150
points
1.66k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

A flutter minimalistic plugin to show native Dialogs!, Compatible with iOS and Android, uses the native UI on each platform to show alert and confirm dialogs.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on native_dialog_plus