flutter_darwin_notification 0.0.2

Flutter iOS

A new flutter plugin project.

Flutter Darwin Notification Plugin #

A iOS Darwin Notification plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and call native darwin notification center.

Flutter Test pub package Build Status style: effective dart

Features #

  • Darwin notification center plugin for ios.
  • Support to send notification to darwin notification center.

Usage #

To use this plugin, add flutter_darwin_notification as a dependency in your pubspec.yaml file. For example:

dependencies:
  flutter_darwin_notification: 0.0.1

API #


import 'package:flutter_darwin_notification/flutter_darwin_notification.dart';

/// New instance
final center = DarwinNotificationCenter();

/// Observe notification 
final stream = center.observe(name: 'notification-name', behavior: Behavior.coalesce);
stream.listen((result) {
  /// Do something    
});

/// Post notification 
center.postNotification('notification-name', object: '1', userInfo: {'1': '2'});

Issues #

Please file any issues, bugs or feature request as an issue on our Github page.

Want to contribute #

If you would like to contribute to the plugin (e.g. by improving the documentation, solving a bug or adding a cool new feature), please carefully review our contribution guide and send us your pull request.

Author #

This Flutter object cache package for Flutter is developed by modool. You can contact us at modool.go@gmail.com