mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	fix: Messagebubble
This commit is contained in:
		
							parent
							
								
									5a5b2e95e0
								
							
						
					
					
						commit
						6bbd6eb0c0
					
				@ -1,4 +1,5 @@
 | 
			
		||||
import 'package:adaptive_dialog/adaptive_dialog.dart';
 | 
			
		||||
import 'package:fluffychat/config/app_config.dart';
 | 
			
		||||
 | 
			
		||||
import 'package:matrix/matrix.dart';
 | 
			
		||||
import 'package:fluffychat/config/themes.dart';
 | 
			
		||||
@ -285,12 +286,12 @@ class ChatListItem extends StatelessWidget {
 | 
			
		||||
                curve: Curves.bounceInOut,
 | 
			
		||||
                padding: EdgeInsets.symmetric(horizontal: 7),
 | 
			
		||||
                height: unreadBubbleSize,
 | 
			
		||||
                width: unreadBubbleSize,
 | 
			
		||||
                width: room.notificationCount == 0 && room.isUnread ? 0 : null,
 | 
			
		||||
                decoration: BoxDecoration(
 | 
			
		||||
                  color: room.highlightCount > 0 || room.markedUnread
 | 
			
		||||
                      ? Colors.red
 | 
			
		||||
                      : Theme.of(context).primaryColor,
 | 
			
		||||
                  borderRadius: BorderRadius.circular(20),
 | 
			
		||||
                  borderRadius: BorderRadius.circular(AppConfig.borderRadius),
 | 
			
		||||
                ),
 | 
			
		||||
                child: Center(
 | 
			
		||||
                  child: room.notificationCount > 0
 | 
			
		||||
@ -298,6 +299,7 @@ class ChatListItem extends StatelessWidget {
 | 
			
		||||
                          room.notificationCount.toString(),
 | 
			
		||||
                          style: TextStyle(
 | 
			
		||||
                            color: Colors.white,
 | 
			
		||||
                            fontSize: 13,
 | 
			
		||||
                          ),
 | 
			
		||||
                        )
 | 
			
		||||
                      : Container(),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user