web show notification when push notification is recieved

This commit is contained in:
amirrezaghabeli
2025-09-24 15:33:48 +03:30
parent 8a786b6ca4
commit 44b9e16a8d
6 changed files with 96 additions and 56 deletions
+15
View File
@@ -21,4 +21,19 @@ class AppToast {
autoCloseDuration: const Duration(seconds: 3),
);
}
static void notification(
BuildContext context,
String title,
String description,
) {
toastification.show(
context: context,
type: ToastificationType.info,
style: ToastificationStyle.flatColored,
title: Text(title),
description: Text(description),
autoCloseDuration: const Duration(seconds: 6),
);
}
}