native_dialog 0.0.3 copy "native_dialog: ^0.0.3" to clipboard
native_dialog: ^0.0.3 copied to clipboard

outdated

A new flutter plugin project.

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);
}

Android

android-alert

iOS

ios-alert

Web

web-alert

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);
}

Android

android-confirm

iOS

ios-confirm

Web

web-confirm
8
likes
0
pub points
73%
popularity

Publisher

unverified uploader

A new flutter plugin project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on native_dialog