mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-03 22:07:23 +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 ownMessage =
 | 
			
		||||
        room.lastEvent?.senderId == Matrix.of(context).client.userID;
 | 
			
		||||
    final unreadBubbleSize = room.isUnread
 | 
			
		||||
        ? room.notificationCount > 0.0
 | 
			
		||||
            ? 20.0
 | 
			
		||||
            : 14.0
 | 
			
		||||
        : 0.0;
 | 
			
		||||
    return Center(
 | 
			
		||||
      child: Material(
 | 
			
		||||
        color: FluffyThemes.chatListItemColor(context, activeChat, selected),
 | 
			
		||||
@ -279,11 +284,8 @@ class ChatListItem extends StatelessWidget {
 | 
			
		||||
                duration: Duration(milliseconds: 300),
 | 
			
		||||
                curve: Curves.bounceInOut,
 | 
			
		||||
                padding: EdgeInsets.symmetric(horizontal: 7),
 | 
			
		||||
                height: room.isUnread
 | 
			
		||||
                    ? room.notificationCount > 0
 | 
			
		||||
                        ? 20
 | 
			
		||||
                        : 14
 | 
			
		||||
                    : 0,
 | 
			
		||||
                height: unreadBubbleSize,
 | 
			
		||||
                width: unreadBubbleSize,
 | 
			
		||||
                decoration: BoxDecoration(
 | 
			
		||||
                  color: room.highlightCount > 0 || room.markedUnread
 | 
			
		||||
                      ? Colors.red
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user