mod: badge

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-19 20:56:05 +08:00
parent 44622c9a0b
commit 568dcfcba9
2 changed files with 1 additions and 14 deletions

View File

@@ -198,10 +198,7 @@ class _UpPanelState extends State<UpPanel> {
isLabelVisible: data.type == 'live' ||
(data.type == 'up' && (data.hasUpdate ?? false)),
backgroundColor: data.type == 'live'
? Theme.of(context)
.colorScheme
.secondaryContainer
.withOpacity(0.7)
? Theme.of(context).colorScheme.secondaryContainer
: Theme.of(context).colorScheme.primary,
),
),

View File

@@ -103,11 +103,6 @@ class _WhisperPageState extends State<WhisperPage> {
isLabelVisible: _whisperController
.msgFeedTop[idx]['value'] >
0,
backgroundColor:
Theme.of(context).colorScheme.primary,
textColor: Theme.of(context)
.colorScheme
.onInverseSurface,
label: Text(
" ${_whisperController.msgFeedTop[idx]['value']} "),
alignment: Alignment.topRight,
@@ -267,11 +262,6 @@ class _WhisperPageState extends State<WhisperPage> {
leading: Badge(
isLabelVisible:
sessionList[i].unreadCount > 0,
// backgroundColor:
// Theme.of(context).colorScheme.primary,
// textColor: Theme.of(context)
// .colorScheme
// .onInverseSurface,
label: Text(
" ${sessionList[i].unreadCount.toString()} "),
alignment: Alignment.topRight,