mark single notification as read
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user