Skip to content
pubscout

local_notifier

0.1.6, released 3 years ago by leanflutter.dev

A plugin for displaying local notifications in Flutter desktop apps.

$ flutter pub add local_notifier
Source repository

What it does

Allows Flutter desktop apps on Windows, macOS, and Linux to display local notifications. Provides options to handle events like show, close, click, and click actions.

AI-written summary of version 0.1.6, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a Flutter desktop application for Windows, macOS, or Linux.
  • You need to show native local notifications to desktop users.

Skip it when

  • You need to target mobile platforms like Android or iOS.
  • You require complex push notifications via remote servers.

Strengths

  • Supports all major desktop platforms: Windows, macOS, and Linux.
  • Provides convenient event handlers such as onClick, onClose, and onShow.

Weaknesses

  • Limited to desktop platforms only.
  • Linux requires system dependencies like `libnotify`.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

For Linux, you must install `libnotify-dev`. Initialize using `localNotifier.setup()` in your main method.

await localNotifier.setup(
  appName: 'local_notifier_example',
);

LocalNotification notification = LocalNotification(
  title: "local_notifier_example",
  body: "hello flutter!",
);
notification.show();

Alternatives

Packages that do the same job and could replace local_notifier.

Works with

Packages commonly used together with local_notifier: ones it builds on, ones built on it, and its own family.