ctrleffive / flutter_native_dialog

Native dialogs for Flutter in Add2App use cases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Native dialogs for Flutter in Add2App use cases.

License:MIT License


Languages

Language:Dart 46.6%Language:Swift 30.8%Language:Kotlin 13.0%Language:Ruby 4.4%Language:Objective-C 2.8%Language:Shell 2.3%