native_dialog

Last updated:

0 purchases

native_dialog Image
native_dialog Images
Add to Cart

Description:

native dialog

Native Dialog #
A Flutter plugin to trigger native alert and confirm dialogs.

Description #
Native Dialog uses the native UI on each platform to show alert and confirm dialogs.
It automatically uses the localized texts for "OK" and "Cancel" buttons.
Usage #
Alert dialog #
import 'package:native_dialog/native_dialog.dart';

try {
await NativeDialog.alert("Oops, something went wrong!");
} on PlatformException catch (error) {
print(error.message);
}
copied to clipboard
Android

iOS

Web

Confirm dialog #
import 'package:native_dialog/native_dialog.dart';

try {
final confirmed = await NativeDialog.confirm("Do you really want to leave?");
print(confirmed);
} on PlatformException catch (error) {
print(error.message);
}
copied to clipboard
Android

iOS

Web

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.