feat(client/notices): 通知页真实化+铃铛红点接 provider+进页清读+三类型标签六语

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P9G7E3wmAYL9KeYCVZVsqu
This commit is contained in:
wangjia
2026-07-13 14:05:47 +08:00
parent 84b162e834
commit 78fd600522
30 changed files with 358 additions and 105 deletions
+5 -1
View File
@@ -9,6 +9,7 @@ import '../pangolin_theme.dart';
import '../state/app_providers.dart';
import '../state/connection_provider.dart';
import '../state/nodes_provider.dart';
import '../state/notices_provider.dart';
import 'notification_bell.dart';
import 'pangolin_icons.dart';
@@ -63,7 +64,10 @@ class ContentTopBar extends ConsumerWidget {
),
if (onBell != null) ...[
const SizedBox(width: 12),
NotificationBell(onTap: onBell!, hasUnread: true),
NotificationBell(
onTap: onBell!,
hasUnread: (ref.watch(noticesProvider).valueOrNull?.unreadCount ?? 0) > 0,
),
],
if (showThemeToggle) ...[
const SizedBox(width: 12),