fix(web): use red (error color) for unread badge instead of green

This commit is contained in:
vjrj 2026-07-15 12:45:08 +02:00
parent 36e44fef00
commit f10db611e8

View file

@ -4,7 +4,6 @@ import 'package:flutter/material.dart';
import '../di/injector.dart'; import '../di/injector.dart';
import '../services/unread_service.dart'; import '../services/unread_service.dart';
import 'theme.dart';
/// Wraps [child] with a small live unread-count badge. It listens to the /// Wraps [child] with a small live unread-count badge. It listens to the
/// app-wide [UnreadService] and rebuilds whenever a count changes: on a new /// app-wide [UnreadService] and rebuilds whenever a count changes: on a new
@ -79,7 +78,7 @@ class _UnreadBadgeState extends State<UnreadBadge> {
return Badge( return Badge(
isLabelVisible: _count > 0, isLabelVisible: _count > 0,
label: Text('$_count'), label: Text('$_count'),
backgroundColor: seedGreen, backgroundColor: Theme.of(context).colorScheme.error,
child: widget.child, child: widget.child,
); );
} }