local_notifier 0.1.0 local_notifier: ^0.1.0 copied to clipboard
This plugin allows Flutter desktop apps to notify local notifications.
local_notifier #
This plugin allows Flutter desktop apps to displaying local notifications.
English | 简体中文
Platform Support #
Linux | macOS | Windows |
---|---|---|
✔️ | ✔️ | ✔️ |
Quick Start #
Installation #
Add this to your package's pubspec.yaml file:
dependencies:
local_notifier: ^0.1.0
Or
dependencies:
local_notifier:
git:
url: https://github.com/leanflutter/local_notifier.git
ref: main
⚠️ Linux requirements
libnotify
Run the following command
sudo apt-get install libnotify-dev
Usage #
LocalNotification notification = LocalNotification(
title: "local_notifier_example",
subtitle: "subtitle",
body: "hello flutter!",
);
await localNotifier.notify(notification);
Please see the example app of this plugin for a full example.
Who's using it? #
- Biyi (比译) - A convenient translation and dictionary app.
API #
LocalNotifier #
Method | Description | Linux | macOS | Windows |
---|---|---|---|---|
notify |
Immediately shows the notification to the user. | ✔️ | ✔️ | ✔️ |