feat: add unlink confirmation dialog, enable agent navigation, update notification read status UI, and increment app version

This commit is contained in:
pradeepkumar
2026-04-24 12:50:49 +05:30
parent 9c89e93476
commit 0f49b21f33
4 changed files with 93 additions and 22 deletions

View File

@@ -93,26 +93,32 @@ class _NotificationsScreenState extends ConsumerState<NotificationsScreen> {
return _buildFilterChip(label, 'unread');
}),
const Spacer(),
GestureDetector(
onTap: () async {
await ref
.read(notificationListProvider.notifier)
.markAllAsRead();
// Reload current filter to reflect changes
ref
.read(notificationListProvider.notifier)
.loadNotifications(filter: _activeFilter);
},
child: const Text(
'Mark all as read',
style: TextStyle(
fontFamily: 'SourceSerif4',
fontSize: 13,
fontWeight: FontWeight.w400,
color: AppColors.accentOrange,
Builder(builder: (context) {
final hasUnread = ref.watch(unreadCountProvider) > 0;
return GestureDetector(
onTap: hasUnread
? () async {
await ref
.read(notificationListProvider.notifier)
.markAllAsRead();
ref
.read(notificationListProvider.notifier)
.loadNotifications(filter: _activeFilter);
}
: null,
child: Text(
'Mark all as read',
style: TextStyle(
fontFamily: 'SourceSerif4',
fontSize: 13,
fontWeight: FontWeight.w400,
color: hasUnread
? AppColors.accentOrange
: AppColors.accentOrange.withValues(alpha: 0.4),
),
),
),
),
);
}),
],
),
),