Skip to content
pubscout

desktop_notifications

0.6.3, released 5 years ago by canonical.com

Send Linux desktop notifications via DBus.

$ flutter pub add desktop_notifications
Source repository

What it does

This package provides a simple API to send notifications on Linux desktops using the desktop notifications specification. It wraps DBus calls and exposes a NotificationsClient for sending and closing notifications.

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

Use it when

  • You need to display system notifications on a Linux desktop
  • You want a lightweight, null‑safe solution without extra dependencies

Skip it when

  • You target macOS, Windows, or mobile platforms
  • You need push notifications or in‑app messaging

Strengths

  • Simple, single‑purpose API
  • Null safety support since 0.2.0
  • Up‑to‑date DBus dependency
  • No build_runner or code generation required

Weaknesses

  • Linux only
  • No support for other desktop environments
  • No advanced notification features (actions, sounds)

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:desktop_notifications/desktop_notifications.dart';

var client = NotificationsClient();
await client.notify('Hello World!');
await client.close();

Alternatives

Packages that do the same job and could replace desktop_notifications.

Works with

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