Skip to content
pubscout

flutter_local_notifications_linux

9.0.0, released 2 weeks ago by dexterx.dev

Linux implementation of the flutter_local_notifications plugin.

WASM-ready
$ flutter pub add flutter_local_notifications_linux
Source repository

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.

Works with

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