mark single notification as read

This commit is contained in:
amirrezaghabeli
2025-09-28 14:28:18 +03:30
parent 4069c79fd9
commit 6e82f2c73f
6 changed files with 130 additions and 27 deletions
@@ -123,6 +123,7 @@ class NotificationCard extends StatelessWidget {
const Spacer(),
TextButton(
onPressed: () {
viewModel.markAsRead(notificationId: notification.id!);
showDialog(
context: context,
builder: (context) {
@@ -131,11 +132,7 @@ class NotificationCard extends StatelessWidget {
viewModel: viewModel,
);
},
).then((value) {
if (context.mounted) {
viewModel.checkNotifications(context);
}
});
);
},
child: Row(
children: [