mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -198,10 +198,7 @@ class _UpPanelState extends State<UpPanel> {
|
|||||||
isLabelVisible: data.type == 'live' ||
|
isLabelVisible: data.type == 'live' ||
|
||||||
(data.type == 'up' && (data.hasUpdate ?? false)),
|
(data.type == 'up' && (data.hasUpdate ?? false)),
|
||||||
backgroundColor: data.type == 'live'
|
backgroundColor: data.type == 'live'
|
||||||
? Theme.of(context)
|
? Theme.of(context).colorScheme.secondaryContainer
|
||||||
.colorScheme
|
|
||||||
.secondaryContainer
|
|
||||||
.withOpacity(0.7)
|
|
||||||
: Theme.of(context).colorScheme.primary,
|
: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -103,11 +103,6 @@ class _WhisperPageState extends State<WhisperPage> {
|
|||||||
isLabelVisible: _whisperController
|
isLabelVisible: _whisperController
|
||||||
.msgFeedTop[idx]['value'] >
|
.msgFeedTop[idx]['value'] >
|
||||||
0,
|
0,
|
||||||
backgroundColor:
|
|
||||||
Theme.of(context).colorScheme.primary,
|
|
||||||
textColor: Theme.of(context)
|
|
||||||
.colorScheme
|
|
||||||
.onInverseSurface,
|
|
||||||
label: Text(
|
label: Text(
|
||||||
" ${_whisperController.msgFeedTop[idx]['value']} "),
|
" ${_whisperController.msgFeedTop[idx]['value']} "),
|
||||||
alignment: Alignment.topRight,
|
alignment: Alignment.topRight,
|
||||||
@@ -267,11 +262,6 @@ class _WhisperPageState extends State<WhisperPage> {
|
|||||||
leading: Badge(
|
leading: Badge(
|
||||||
isLabelVisible:
|
isLabelVisible:
|
||||||
sessionList[i].unreadCount > 0,
|
sessionList[i].unreadCount > 0,
|
||||||
// backgroundColor:
|
|
||||||
// Theme.of(context).colorScheme.primary,
|
|
||||||
// textColor: Theme.of(context)
|
|
||||||
// .colorScheme
|
|
||||||
// .onInverseSurface,
|
|
||||||
label: Text(
|
label: Text(
|
||||||
" ${sessionList[i].unreadCount.toString()} "),
|
" ${sessionList[i].unreadCount.toString()} "),
|
||||||
alignment: Alignment.topRight,
|
alignment: Alignment.topRight,
|
||||||
|
|||||||
Reference in New Issue
Block a user