Minor bug: avoid showing empty dialog when notifications tapped (#2250)

This commit is contained in:
Imran Remtulla
2025-04-20 19:01:14 -04:00
parent 3e41913153
commit b62b60d9df

View File

@ -197,6 +197,7 @@ class NotificationsProvider {
}
_showNotificationPayload(String? payload, {bool doublePop = false}) {
if (payload?.isNotEmpty == true) {
var title = (payload ?? '\n\n').split('\n').first;
var content = (payload ?? '\n\n').split('\n').sublist(1).join('\n');
globalNavigatorKey.currentState?.push(
@ -218,6 +219,7 @@ class NotificationsProvider {
),
);
}
}
Future<void> cancel(int id) async {
if (!isInitialized) {