Viewing version 8.0.2. Open the latest package page.

flutter_local_notifications_linux

8.0.2

Linux implementation of the flutter_local_notifications plugin

Download archive

Readme

Flutter Local Notifications Linux plugin

The Linux implementation of flutter_local_notifications.

Usage

This package is already included as part of the flutter_local_notifications package dependency, and will be included when using flutter_local_notifications as normal.

Changelog

[8.0.2]

  • Bumped allowed dbus dependency version constraints to >=0.7.8 <0.9.0

[8.0.1]

  • Bumped dependency on flutter_local_notifications_platform_interface

[8.0.0]

  • Breaking change bumped minimum Flutter SDK requirement to 3.38.1 and Dart SDK requirement to 3.10.0

[7.0.0]

  • Breaking change bumped minimum Flutter SDK requirement to 3.32.0 and Dart SDK requirement to 3.8.0
  • Breaking changes the positional parameters in the following methods have now been converted to named parameters
    • initialize()
    • show()
    • periodicallyShow()
    • periodicallyShowWithDuration()
    • cancel()
    • LinuxNotificationCustomHint()
  • Added flutter_lints to apply linter rules

[6.0.0]

  • Breaking change bumped minimum Flutter SDK requirement to 3.22.0 and Dart SDK requirement to 3.4.0
  • Bumped flutter_local_notifications_platform_interface dependency

[5.0.0]

  • Breaking change Bumped minimum Flutter SDK requirement to 3.13

[4.0.1]

  • Fixed issue #2368. This involved updating pubspec so it defines that it implements the Linux implementation of flutter_local_notifications and updating the code so it registers the Linux implementation

[4.0.0+1]

  • Bumped maximum Dart SDK constraint

[4.0.0]

  • Breaking change the id property of the ActiveNotification class is now nullable to help indicate that the notification may not have been created by the plugin e.g. it was from Firebase Cloud Messaging. Thanks to the PR from frankvollebregt
  • Breaking change the following classes are now enums
    • LinuxNotificationCategory
    • LinuxNotificationUrgency
  • Switched from using mocktail to mockito for consistency and with it getting more updates as a first-party package

[3.0.0+1]

  • Bumped xdg_directories dependency constraints

[3.0.0]

  • Updated minimum Flutter version to 3.0.0. Note that technically this was already a requirement by flutter_local_notifications_linux 2.0.0 as ffi 2.0.0 requires Dart 2.17 at a minimum and that shipped with Flutter 3.0.0
  • Added explicit ffi dependency that plugin was already using

[2.0.0]

  • Bumped dbus dependency

[1.0.0]

  • Breaking change The linux notification categories defined by LinuxNotificationCategory no longer has factory constructors but has static constant fields instead to make the semantics more similar to access enum values
  • Updated minimum Flutter version to 2.8 to align with the minimum Dart SDK version of 2.1.5 required by the dbus package

[0.5.1]

  • Fixes issue 1656 where a version constraint issue occurred with the path package. The version constraint has been lowered to resolve the issue

[0.5.0+1]

  • Added a note to 0.5.0 changelog to make it clear that the 0.5.0 stable release doesn't have changes from the 0.5.0 pre-releases

[0.5.0]

  • Added support for icons to be specified via file path. Thanks to PR from Yaroslav Pronin
  • Note: the 0.5.0 release does not have the same as what was on the 0.5.0 pre-releases. Those pre-releases are more closely related to changes being done for the 10.0.0 pre-release of flutter_local_notifications. What was in the 0.5.0 pre-releases will be shifted to a 1.0.0 pre-release of flutter_local_notifications_linux

[0.5.0-dev.4]

  • Breaking change callbacks have now been reworked. onDidReceiveNotificationResponse is invoked only when the app is running. This works for when a user has selected a notification or notification action. This replaces the onSelectNotification callback that existed before
  • Breaking change the NotificationAppLaunchDetails has been updated to contain an instance NotificationResponse class with the payload belonging to the NotificationResponse class. This is to allow knowing more details about what caused the app to launch e.g. if a notification action was used to do so

[0.5.0-dev.3]

  • Includes changes from 0.4.2

[0.5.0-dev.2]

  • Added support for notification actions

[0.5.0-dev.1]

  • Bumped flutter_local_notifications_platform_interface dependency

[0.4.2]

  • Bumped dependencies. Thanks to PR from Guy Luz

[0.4.1+1]

  • Fixed minor casing error in 0.4.1 changelog entry

[0.4.1]

  • Fix initialize() returning null all the time instead of returning an appropriate boolean value to indicate if plugin has been initialised

[0.4.0]

  • Bumped dbus dependency.

[0.3.0]

  • Breaking change the SelectNotificationCallback typedef now maps to a function that returns void instead of a Future<dynamic>. This change was done to better communicate the plugin doesn't actually await any asynchronous computation and is similar to how button pressed callbacks work for Flutter where they are typically use VoidCallback

[0.2.0+1]

  • Fixed links to GNOME developer documentation referenced in API docs

[0.2.0]

  • Fixed issue when an app using the plugin is built on the web by using conditional imports
  • Changed the logic where notification IDs are saved so that $XDG_RUNTIME_DIR environment variable is not set but $TMPDIR is set, then they are saved to a file within the /$TMPDIR/APP_NAME/USER_ID/SESSION_ID directory. If $TMPDIR is not set then, it would save to /tmp/APP_NAME/USER_ID/SESSION_ID
  • Fixed an issue where errors would occur if the plugin was initialised multiple times

[0.1.0+1]

  • Point to types within platform interface

[0.1.0]

  • Initial version for Linux

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'flutter_local_notifications_linux:8.0.2'
pubspec.yaml
name: flutter_local_notifications_linux
description: Linux implementation of the flutter_local_notifications plugin
version: 8.0.2
homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications
issue_tracker: https://github.com/MaikuB/flutter_local_notifications/issues

flutter:
  plugin:
    implements: flutter_local_notifications
    platforms:
      linux:
        dartPluginClass: LinuxFlutterLocalNotificationsPlugin

dependencies:
  dbus: ">=0.7.8 <0.9.0"
  ffi: ^2.0.1
  flutter:
    sdk: flutter
  flutter_local_notifications_platform_interface: ^12.0.0
  path: ^1.8.0
  xdg_directories: ">=0.2.0+1 <2.0.0"

dev_dependencies:
  build_runner: ^2.3.3
  flutter_test:
    sdk: flutter
  flutter_lints: ^6.0.0
  mockito: ^5.3.2

environment:
  sdk: ^3.10.0
  flutter: ">=3.38.1"

Version history

VersionPublishedArchiveSHA-256
0.1.0On demandDownload3724a73c…5c9d25
0.1.0+1On demandDownloade9f5084a…045c8e
0.2.0On demandDownload803360ce…e92b82
0.2.0+1On demandDownloade70203ef…44a00b
0.3.0-dev.1On demandDownload8afd0988…27cc7f
0.3.0On demandDownload0824c368…4f1bc5
0.3.1-dev.1On demandDownloadb57acac0…bc1e87
0.4.0On demandDownloadc8916351…f15686
0.4.1On demandDownloadfc95ff0f…91d257
0.4.1+1On demandDownload64a5f687…3fc4e6
0.4.2On demandDownload51ef7411…a8ef64
0.5.0-dev.1On demandDownloadbdc153e8…5b49ef
0.5.0-dev.2On demandDownloadb6a6ec54…229ea0
0.5.0-dev.3On demandDownload976c319f…d03d03
0.5.0-dev.4On demandDownload6cc04c69…743d55
0.5.0On demandDownloadebb042f8…5f46ff
0.5.0+1On demandDownload30cbdbf3…5ce80c
0.5.1On demandDownloadb472bfc1…76bae8
1.0.0-dev.1On demandDownload05413c8f…64ad6b
1.0.0-dev.2On demandDownload1f708ba5…b9361e
1.0.0-dev.3On demandDownloada4892417…0367a5
1.0.0-dev.4On demandDownloada9593ef4…e69c47
1.0.0On demandDownload6af440e3…b5d523
2.0.0On demandDownload3c6d6db3…7c0ca8
3.0.0On demandDownload8f6c1611…7f7fbf
3.0.0+1On demandDownloadccb08b93…734b89
4.0.0-dev.1On demandDownload8ec32fa4…b7c517
4.0.0-dev.2On demandDownloade817ffb3…4fe66a
4.0.0On demandDownload909bb95d…8586d7
4.0.0+1On demandDownload33f741ef…db6a03
4.0.1On demandDownloadc49bd061…7fc3af
5.0.0-dev.1On demandDownload3f051bbf…dd110e
5.0.0On demandDownload8f685642…12ca01
5.0.1-dev.1On demandDownload265340ee…d5a3eb
6.0.0-dev.1On demandDownload2f1ba596…2c5e2c
6.0.0On demandDownloade3c277b2…0770a5
7.0.0-dev.1On demandDownload3d4ba506…8aa22a
7.0.0-dev.2On demandDownloadad4a6815…5599ea
7.0.0On demandDownloaddce01168…5868d0
8.0.0-dev.1On demandDownload223bdd6e…e838e5
8.0.0On demandDownloade0f25e24…c840bd
8.0.1-dev.1On demandDownloadad8c6075…f94d46
8.0.1On demandDownload9ca97e63…3c5a8b
8.0.2Cached · Upstream SHA-256 matchedDownload3b89a4bf…c5b615
9.0.0-dev.1On demandDownload36313617…d60e85
9.0.0-dev.2On demandDownload2d60f9cd…1fe3c6

Dependencies

dbus "\u003e=0.7.8 \u003c0.9.0"

ffi "^2.0.1"

flutter { "sdk": "flutter" }

flutter_local_notifications_platform_interface "^12.0.0"

path "^1.8.0"

xdg_directories "\u003e=0.2.0+1 \u003c2.0.0"