|
|
@ -320,16 +320,22 @@ class ChatListItem extends StatelessWidget {
|
|
|
|
color: room.highlightCount > 0
|
|
|
|
color: room.highlightCount > 0
|
|
|
|
? Colors.red
|
|
|
|
? Colors.red
|
|
|
|
: room.notificationCount > 0
|
|
|
|
: room.notificationCount > 0
|
|
|
|
? Theme.of(context).primaryColor
|
|
|
|
? Theme.of(context).colorScheme.primary
|
|
|
|
: Theme.of(context).primaryColor.withAlpha(100),
|
|
|
|
: Theme.of(context).colorScheme.primaryContainer,
|
|
|
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
|
|
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: room.notificationCount > 0
|
|
|
|
child: room.notificationCount > 0
|
|
|
|
? Text(
|
|
|
|
? Text(
|
|
|
|
room.notificationCount.toString(),
|
|
|
|
room.notificationCount.toString(),
|
|
|
|
style: const TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Colors.white,
|
|
|
|
color: room.highlightCount > 0
|
|
|
|
|
|
|
|
? Colors.white
|
|
|
|
|
|
|
|
: room.notificationCount > 0
|
|
|
|
|
|
|
|
? Theme.of(context).colorScheme.onPrimary
|
|
|
|
|
|
|
|
: Theme.of(context)
|
|
|
|
|
|
|
|
.colorScheme
|
|
|
|
|
|
|
|
.onPrimaryContainer,
|
|
|
|
fontSize: 13,
|
|
|
|
fontSize: 13,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|