magic_notifications 0.0.1-alpha.1
magic_notifications: ^0.0.1-alpha.1 copied to clipboard
Multi-channel notification system for Magic Framework. Supports database (in-app), push (OneSignal), and mail channels.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate magic_notificationsUse it
The package has the following executables:
$ magic_notifications
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add magic_notificationsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
magic_notifications: ^0.0.1-alpha.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:magic_notifications/magic_notifications.dart';