Added markAll as read for notification
This commit is contained in:
@@ -36,7 +36,7 @@ class _MobileNotificationPageState extends State<MobileNotificationPage>
|
||||
viewModel.hasMoreData) {
|
||||
viewModel.getNotifications(
|
||||
page: viewModel.currentPage + 1,
|
||||
isMobile: true,
|
||||
isMobile: true,
|
||||
);
|
||||
}
|
||||
});
|
||||
@@ -51,7 +51,7 @@ class _MobileNotificationPageState extends State<MobileNotificationPage>
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final viewModel = context.watch<NotificationViewModel>(); // ✅ وصل به ویومدل
|
||||
final viewModel = context.watch<NotificationViewModel>();
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: AppColors.backgroundColor,
|
||||
@@ -72,7 +72,9 @@ class _MobileNotificationPageState extends State<MobileNotificationPage>
|
||||
child: Align(
|
||||
alignment: Alignment.centerRight,
|
||||
child: InkWell(
|
||||
onTap: viewModel.markAllAsRead, // ✅ مثل دسکتاپ/تبلت
|
||||
onTap: () {
|
||||
viewModel.markAllAsRead(context);
|
||||
},
|
||||
borderRadius: BorderRadius.circular(99),
|
||||
child: Container(
|
||||
width: 132.0.w(),
|
||||
|
||||
Reference in New Issue
Block a user