migrated Marianum Message module to the Marianum-Connect API and implemented push notification deep linking

This commit is contained in:
2026-07-11 17:37:50 +02:00
parent ff23199345
commit c444ed54a5
13 changed files with 237 additions and 78 deletions
+18 -2
View File
@@ -131,13 +131,29 @@ class AppRoutes {
static void openMarianumMessage(
BuildContext context,
String basePath,
MarianumMessage message,
) {
pushScreen(
context,
withNavBar: false,
screen: MessageView(basePath: basePath, message: message),
screen: MessageView(id: message.id, title: message.name),
);
}
/// Opens a Marianum Message by id — used for push deep links where only the
/// id (and the notification title) are known.
static void openNewsletterById(
BuildContext context, {
required String id,
String? title,
}) {
pushScreen(
context,
withNavBar: false,
screen: MessageView(
id: id,
title: title == null || title.isEmpty ? 'Marianum Message' : title,
),
);
}