fix(web): use red (error color) for unread badge instead of green
This commit is contained in:
parent
bedcc7e398
commit
7f6c88039c
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue