mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-26 03:10:43 +01:00
fix: unreadBubbleSize
This commit is contained in:
parent
1d8dcac2be
commit
01f6b5e0d3
@ -141,6 +141,11 @@ class ChatListItem extends StatelessWidget {
|
|||||||
final typingText = room.getLocalizedTypingText(context);
|
final typingText = room.getLocalizedTypingText(context);
|
||||||
final ownMessage =
|
final ownMessage =
|
||||||
room.lastEvent?.senderId == Matrix.of(context).client.userID;
|
room.lastEvent?.senderId == Matrix.of(context).client.userID;
|
||||||
|
final unreadBubbleSize = room.isUnread
|
||||||
|
? room.notificationCount > 0.0
|
||||||
|
? 20.0
|
||||||
|
: 14.0
|
||||||
|
: 0.0;
|
||||||
return Center(
|
return Center(
|
||||||
child: Material(
|
child: Material(
|
||||||
color: FluffyThemes.chatListItemColor(context, activeChat, selected),
|
color: FluffyThemes.chatListItemColor(context, activeChat, selected),
|
||||||
@ -279,11 +284,8 @@ class ChatListItem extends StatelessWidget {
|
|||||||
duration: Duration(milliseconds: 300),
|
duration: Duration(milliseconds: 300),
|
||||||
curve: Curves.bounceInOut,
|
curve: Curves.bounceInOut,
|
||||||
padding: EdgeInsets.symmetric(horizontal: 7),
|
padding: EdgeInsets.symmetric(horizontal: 7),
|
||||||
height: room.isUnread
|
height: unreadBubbleSize,
|
||||||
? room.notificationCount > 0
|
width: unreadBubbleSize,
|
||||||
? 20
|
|
||||||
: 14
|
|
||||||
: 0,
|
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: room.highlightCount > 0 || room.markedUnread
|
color: room.highlightCount > 0 || room.markedUnread
|
||||||
? Colors.red
|
? Colors.red
|
||||||
|
Loading…
x
Reference in New Issue
Block a user