From 4bde7875fbbd408ea14f84f6e961f97870a3f2b6 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Mon, 28 Sep 2026 14:32:18 -0400 Subject: [PATCH] up-to-date xdg portals Fixes #101 --- lib/controllers/notification.dart | 11 ++++++++++- pubspec.lock | 20 ++++++++++---------- pubspec.yaml | 5 +++-- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/lib/controllers/notification.dart b/lib/controllers/notification.dart index 5ee3449..d93775e 100644 --- a/lib/controllers/notification.dart +++ b/lib/controllers/notification.dart @@ -124,9 +124,18 @@ class NotificationController id.toString(), title: title, body: body, - icon: icon == null ? null : XdgNotificationIconFile(icon.path), defaultAction: "app.event", defaultActionTarget: payload, + category: XdgNotificationCategory.imReceived, + priority: .normal, + buttons: [ + // TODO: Impl when notif daemons actualy support imReplyWithText + // .new( + // label: "Reply", + // action: "app.reply", + // purpose: XdgNotificationButtonPurpose.imReplyWithText, + // ), + ], ); } else { final notificationDetails = NotificationDetails( diff --git a/pubspec.lock b/pubspec.lock index 51e0bd6..88f6306 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -149,10 +149,10 @@ packages: dependency: transitive description: name: built_collection - sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" + sha256: "44922ecebd8e3d0cef743dadd3b54df4e87e2a4c52a29465a1872aa9e192caa8" url: "https://pub.dev" source: hosted - version: "5.1.1" + version: "5.1.2" built_value: dependency: transitive description: @@ -898,18 +898,18 @@ packages: dependency: "direct main" description: name: material_emoji_picker - sha256: fff8b05f9f8c4a0da552397b03823b4fe351e98ec8aa4ed46e3ab9a7f6655c83 + sha256: "0468b616b9dc837caf31b3c260f26b31f91ddd21fa5125c1521481e037852657" url: "https://pub.dev" source: hosted - version: "1.1.1+2" + version: "1.1.2" material_ui: dependency: "direct main" description: name: material_ui - sha256: "134ab2f0843545c4e661e4ba2753fe1bcf0753cb690d5a9ee4870638a40411e9" + sha256: "32d98f11cf5942a095a8c3e01b03e4de3b17941437713dcf36b1088fb62e23d2" url: "https://pub.dev" source: hosted - version: "1.4.0" + version: "1.5.0" measure_size: dependency: "direct main" description: @@ -1123,10 +1123,10 @@ packages: dependency: transitive description: name: petitparser - sha256: "91bd59303e9f769f108f8df05e371341b15d59e995e6806aefab827b58336675" + sha256: "2f1564aadb14215e478563b5406cb80729d022158c01dc50c96013c2f7eb4790" url: "https://pub.dev" source: hosted - version: "7.0.2" + version: "7.1.0" platform: dependency: transitive description: @@ -1746,8 +1746,8 @@ packages: dependency: "direct main" description: path: "." - ref: HEAD - resolved-ref: "9ead341e908da2972293b2edc345f2b0a6423d78" + ref: "quad/nexus" + resolved-ref: "964249996e536b3c5b10c2654d1dc69044693431" url: "https://github.com/Henry-Hiles/xdg_desktop_portal.dart" source: git version: "0.1.14" diff --git a/pubspec.yaml b/pubspec.yaml index 2535e0b..e7e440c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -85,14 +85,15 @@ dependencies: package_info_plus: 10.2.1 app_links: 7.2.1 file_selector: 1.1.0 - material_ui: 1.4.0 + material_ui: 1.5.0 unifiedpush: 6.2.0 unifiedpush_storage_shared_preferences: 1.0.0 flutter_local_notifications: 22.3.1 - material_emoji_picker: 1.1.1+2 + material_emoji_picker: 1.1.2 xdg_desktop_portal: git: url: https://github.com/Henry-Hiles/xdg_desktop_portal.dart + ref: quad/nexus dev_dependencies: build_runner: 2.16.1