flutter_native_dialog 0.1.0 copy "flutter_native_dialog: ^0.1.0" to clipboard
flutter_native_dialog: ^0.1.0 copied to clipboard

Native dialogs for Flutter in Add2App use cases. (Android and iOS)

flutter_native_dialog Pub Build Status #

This plugin allows using native dialogs in Android and iOS. It was made specifically for Add2App use cases when just a part of your UI is made in Flutter. In this case, you can't use the built-in dialog system.

If you are not integrating Flutter in your existing app, you are better off using the built-in dialog system from the Flutter library

Usage #

To use this plugin, add flutter_native_dialog as a dependency in your pubspec.yaml file.

Example #

import 'package:flutter_native_dialog/flutter_native_dialog.dart';

final result = await FlutterNativeDialog.showConfirmDialog(
      title: "This is a confirm dialog",
      message: "A message in the dialog",
      positiveButtonText: "OK",
      negativeButtonText: "Cancel",
    );

print(result); // true or false depending on user input
3
likes
40
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Native dialogs for Flutter in Add2App use cases. (Android and iOS)

Repository (GitHub)

License

MIT (license)

Dependencies

flutter, meta

More

Packages that depend on flutter_native_dialog