use portals for linux notifs
This commit is contained in:
parent
c0d14ac30e
commit
deaf564c36
6 changed files with 43 additions and 22 deletions
|
|
@ -3,8 +3,6 @@ import "dart:io";
|
|||
import "package:material_ui/material_ui.dart";
|
||||
import "package:nexus/main.dart";
|
||||
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";
|
||||
import "package:nexus/pages/notifications.dart";
|
||||
|
||||
|
|
@ -91,14 +89,9 @@ class NotificationController
|
|||
largeIcon: icon == null ? null : FilePathAndroidBitmap(icon.path),
|
||||
),
|
||||
linux: .new(
|
||||
customHints: icon == null
|
||||
? null
|
||||
: [
|
||||
.new(
|
||||
name: "image-path",
|
||||
value: LinuxHintStringValue(icon.path),
|
||||
),
|
||||
],
|
||||
category: LinuxNotificationCategory.imReceived,
|
||||
defaultActionName: "app.event",
|
||||
icon: icon == null ? null : FilePathLinuxIcon(icon.path),
|
||||
),
|
||||
// TODO: See if icons can be added to iOS, macOS, and Windows notifications (#68)
|
||||
iOS: .new(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue