From d51ce6be8a5f8ef44222424fa04cc9926ed91426 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Sat, 7 Aug 2021 17:15:45 +0200 Subject: [PATCH] fix: Correctly size the unread bubble in the room list --- lib/widgets/list_items/chat_list_item.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/widgets/list_items/chat_list_item.dart b/lib/widgets/list_items/chat_list_item.dart index 842cf7b1..cb33c89a 100644 --- a/lib/widgets/list_items/chat_list_item.dart +++ b/lib/widgets/list_items/chat_list_item.dart @@ -291,7 +291,9 @@ class ChatListItem extends StatelessWidget { height: unreadBubbleSize, width: room.notificationCount == 0 && !room.isUnread ? 0 - : unreadBubbleSize, + : (unreadBubbleSize - 10) * + room.notificationCount.toString().length + + 10, decoration: BoxDecoration( color: room.highlightCount > 0 ? Colors.red