fix(client): NotificationBell.onTap 恢复 required 非空(对齐规范)
- notification_bell.dart: VoidCallback? → VoidCallback(字段非空) - content_top_bar.dart: 在 null-guard 内用 onBell! 传给 NotificationBell - flutter analyze: No issues found Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -63,7 +63,7 @@ class ContentTopBar extends ConsumerWidget {
|
||||
),
|
||||
if (onBell != null) ...[
|
||||
const SizedBox(width: 12),
|
||||
NotificationBell(onTap: onBell, hasUnread: true),
|
||||
NotificationBell(onTap: onBell!, hasUnread: true),
|
||||
],
|
||||
if (showThemeToggle) ...[
|
||||
const SizedBox(width: 12),
|
||||
|
||||
Reference in New Issue
Block a user