refactor: Display two lines on new messages
This commit is contained in:
parent
6b4ed7bdc8
commit
972c58b5ad
1 changed files with 2 additions and 1 deletions
|
|
@ -339,7 +339,8 @@ class ChatListItem extends StatelessWidget {
|
||||||
: snapshot.data ??
|
: snapshot.data ??
|
||||||
L10n.of(context).emptyChat,
|
L10n.of(context).emptyChat,
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
maxLines: room.hasNewMessages ? 2 : 1,
|
maxLines:
|
||||||
|
room.notificationCount >= 1 ? 2 : 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontWeight: unread || room.hasNewMessages
|
fontWeight: unread || room.hasNewMessages
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue