flutter_local_notifications_linux
9.0.0, released 2 weeks ago by dexterx.dev
Linux implementation of the flutter_local_notifications plugin.
What it does
Provides local notification support for Flutter apps running on Linux. It registers the Linux platform implementation used by the flutter_local_notifications package. Relies on dbus and ffi to communicate with the Linux notification daemon.
AI-written summary of version 9.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building a Flutter app that targets Linux and needs local notifications
- You already use flutter_local_notifications and want Linux support out of the box
Skip it when
- Your app only runs on mobile/web and doesn't need Linux support
- You require push notifications or advanced features not covered by the plugin
Strengths
- Seamlessly integrates with flutter_local_notifications
- Handles Linux notification daemon via dbus
- No extra setup beyond adding the dependency
Weaknesses
- Only works on Linux; no other platforms
- Requires Flutter SDK >=3.44.0 and Dart >=3.12.0
- Limited documentation beyond the main plugin
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
final FlutterLocalNotificationsPlugin notifications = FlutterLocalNotificationsPlugin();
await notifications.initialize(const InitializationSettings(
linux: LinuxInitializationSettings(defaultActionName: 'Open'),
));
await notifications.show(0, 'Title', 'Body', const NotificationDetails(
linux: LinuxNotificationDetails(),
));Alternatives
Packages that do the same job and could replace flutter_local_notifications_linux.
- awesome_notifications
Create and customize local and push notifications in Flutter apps.
78Compare - firebase_messaging_handler
Unified Firebase Cloud Messaging handler with inbox, scheduling, and in‑app messaging for Flutter
68Compare - platform_local_notifications
Cross-platform local notifications plugin supporting Android, iOS, Web, Windows, macOS, and Linux.
67Compare - firebase_notifications_handler
Handle Firebase Cloud Messaging notifications with built-in local notifications support.
63Compare
Works with
Packages commonly used together with flutter_local_notifications_linux: ones it builds on, ones built on it, and its own family.
- ffiflutter_local_notifications_linux depends on itUtilities for working with Foreign Function Interface (FFI) code in Dart.
- xdg_directoriesflutter_local_notifications_linux depends on itA Dart package for reading XDG directory configuration information on Linux.
- dbusflutter_local_notifications_linux depends on itNative Dart D-Bus client for Linux and Windows.
- flutter_local_notifications_platform_interfaceflutter_local_notifications_linux depends on itA common platform interface for the flutter_local_notifications plugin.
- flutter_local_notificationsBuilt on flutter_local_notifications_linuxCross-platform plugin for displaying and scheduling local notifications.