parent
07f8e58a4c
commit
4bde7875fb
3 changed files with 23 additions and 13 deletions
|
|
@ -124,9 +124,18 @@ class NotificationController
|
||||||
id.toString(),
|
id.toString(),
|
||||||
title: title,
|
title: title,
|
||||||
body: body,
|
body: body,
|
||||||
icon: icon == null ? null : XdgNotificationIconFile(icon.path),
|
|
||||||
defaultAction: "app.event",
|
defaultAction: "app.event",
|
||||||
defaultActionTarget: payload,
|
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 {
|
} else {
|
||||||
final notificationDetails = NotificationDetails(
|
final notificationDetails = NotificationDetails(
|
||||||
|
|
|
||||||
20
pubspec.lock
20
pubspec.lock
|
|
@ -149,10 +149,10 @@ packages:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: built_collection
|
name: built_collection
|
||||||
sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100"
|
sha256: "44922ecebd8e3d0cef743dadd3b54df4e87e2a4c52a29465a1872aa9e192caa8"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "5.1.1"
|
version: "5.1.2"
|
||||||
built_value:
|
built_value:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -898,18 +898,18 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: material_emoji_picker
|
name: material_emoji_picker
|
||||||
sha256: fff8b05f9f8c4a0da552397b03823b4fe351e98ec8aa4ed46e3ab9a7f6655c83
|
sha256: "0468b616b9dc837caf31b3c260f26b31f91ddd21fa5125c1521481e037852657"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.1+2"
|
version: "1.1.2"
|
||||||
material_ui:
|
material_ui:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: material_ui
|
name: material_ui
|
||||||
sha256: "134ab2f0843545c4e661e4ba2753fe1bcf0753cb690d5a9ee4870638a40411e9"
|
sha256: "32d98f11cf5942a095a8c3e01b03e4de3b17941437713dcf36b1088fb62e23d2"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.4.0"
|
version: "1.5.0"
|
||||||
measure_size:
|
measure_size:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|
@ -1123,10 +1123,10 @@ packages:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: petitparser
|
name: petitparser
|
||||||
sha256: "91bd59303e9f769f108f8df05e371341b15d59e995e6806aefab827b58336675"
|
sha256: "2f1564aadb14215e478563b5406cb80729d022158c01dc50c96013c2f7eb4790"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "7.0.2"
|
version: "7.1.0"
|
||||||
platform:
|
platform:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
@ -1746,8 +1746,8 @@ packages:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: HEAD
|
ref: "quad/nexus"
|
||||||
resolved-ref: "9ead341e908da2972293b2edc345f2b0a6423d78"
|
resolved-ref: "964249996e536b3c5b10c2654d1dc69044693431"
|
||||||
url: "https://github.com/Henry-Hiles/xdg_desktop_portal.dart"
|
url: "https://github.com/Henry-Hiles/xdg_desktop_portal.dart"
|
||||||
source: git
|
source: git
|
||||||
version: "0.1.14"
|
version: "0.1.14"
|
||||||
|
|
|
||||||
|
|
@ -85,14 +85,15 @@ dependencies:
|
||||||
package_info_plus: 10.2.1
|
package_info_plus: 10.2.1
|
||||||
app_links: 7.2.1
|
app_links: 7.2.1
|
||||||
file_selector: 1.1.0
|
file_selector: 1.1.0
|
||||||
material_ui: 1.4.0
|
material_ui: 1.5.0
|
||||||
unifiedpush: 6.2.0
|
unifiedpush: 6.2.0
|
||||||
unifiedpush_storage_shared_preferences: 1.0.0
|
unifiedpush_storage_shared_preferences: 1.0.0
|
||||||
flutter_local_notifications: 22.3.1
|
flutter_local_notifications: 22.3.1
|
||||||
material_emoji_picker: 1.1.1+2
|
material_emoji_picker: 1.1.2
|
||||||
xdg_desktop_portal:
|
xdg_desktop_portal:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Henry-Hiles/xdg_desktop_portal.dart
|
url: https://github.com/Henry-Hiles/xdg_desktop_portal.dart
|
||||||
|
ref: quad/nexus
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
build_runner: 2.16.1
|
build_runner: 2.16.1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue