Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

include avatars on notifs

This commit is contained in:
Henry Hiles 2026-08-26 00:46:57 -04:00
commit 74207e405b
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 23 additions and 3 deletions

View file

@ -1,6 +1,8 @@
import "dart:io";
import "package:flutter_local_notifications/flutter_local_notifications.dart";
// ignore: implementation_imports
import "package:flutter_local_notifications_linux/src/model/hint.dart";
import "package:flutter_riverpod/flutter_riverpod.dart";
class NotificationsController
@ -75,7 +77,16 @@ class NotificationsController
),
iOS: .new(),
macOS: .new(),
linux: .new(icon: icon == null ? null : FilePathLinuxIcon(icon.path)),
linux: .new(
customHints: icon == null
? null
: [
.new(
name: "image-path",
value: LinuxHintStringValue(icon.path),
),
],
),
windows: .new(),
);