feat: Rate limit streams so that large accounts have a smoother UI
This commit is contained in:
parent
b225f9c2c8
commit
7e1e4e4844
4 changed files with 62 additions and 6 deletions
|
|
@ -289,7 +289,9 @@ class ChatListItem extends StatelessWidget {
|
|||
curve: Curves.bounceInOut,
|
||||
padding: EdgeInsets.symmetric(horizontal: 7),
|
||||
height: unreadBubbleSize,
|
||||
width: room.notificationCount == 0 && !room.isUnread ? 0 : null,
|
||||
width: room.notificationCount == 0 && !room.isUnread
|
||||
? 0
|
||||
: unreadBubbleSize,
|
||||
decoration: BoxDecoration(
|
||||
color: room.highlightCount > 0
|
||||
? Colors.red
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue