/flutter_native_dialog

Native dialogs for Flutter in Add2App use cases.

Primary LanguageDartMIT LicenseMIT

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