Add this to your package's pubspec.yaml file:
dependencies:
git:
url: https://github.com/nghuyy/local_notifier.git
ref: main
libnotify
Run the following command
sudo apt-get install libnotify-dev
LocalNotification notification = LocalNotification(
title: "local_notifier_example",
subtitle: "subtitle",
body: "hello flutter!",
);
await localNotifier.notify(notification);
Method | Description | Linux | macOS | Windows | Anroid |
---|---|---|---|---|---|
notify |
Immediately shows the notification to the user. | ✔️ | ✔️ | ✔️ | ✔️ |