desktop_notifications
0.6.3, released 5 years ago by canonical.com
Send Linux desktop notifications via DBus.
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.
- toastification
Flutter toast and notification widget library
91Compare - flutter_local_notifications_linux
Linux implementation of the flutter_local_notifications plugin.
81Compare - firebase_in_app_messaging
Flutter plugin for Firebase In-App Messaging campaigns.
93Compare - eraser
A flutter plugin that allows remote push notifications to be dismissed and the iOS badge count to be reset.
75Compare
Works with
Packages commonly used together with desktop_notifications: ones it builds on, ones built on it, and its own family.
- dbusdesktop_notifications depends on itNative Dart D-Bus client for Linux and Windows.
- nmSame familyClient for interacting with Linux NetworkManager via D-Bus
- gsettingsSame familyClient to access GSettings database for storing user preferences on Linux.
- geoclueSame familyDart client for the GeoClue D-Bus geolocation service on Linux.
- upowerSame familyProvides a client to connect to UPower for Linux power management.
- bluezSame familyA Dart client for interacting with the Linux BlueZ Bluetooth stack via D-Bus.
- xdg_desktop_portalSame familyA native Dart implementation of portals for Linux desktop applications.
- packagekitSame familyClient for connecting to PackageKit to manage Linux software packages.