From 01f6b5e0d301eeea600674c42a378469b0ad98cd Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 5 Jun 2021 09:11:37 +0200 Subject: [PATCH] fix: unreadBubbleSize --- lib/widgets/list_items/chat_list_item.dart | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/widgets/list_items/chat_list_item.dart b/lib/widgets/list_items/chat_list_item.dart index 7c222482..6e068ae5 100644 --- a/lib/widgets/list_items/chat_list_item.dart +++ b/lib/widgets/list_items/chat_list_item.dart @@ -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