fix: Used text.rich instead of richtext to fix test

This commit is contained in:
Deven Joshi
2021-01-06 17:38:23 +05:30
parent 9bbad0b9e2
commit bfc9fc82f6
2 changed files with 15 additions and 26 deletions
+4 -4
View File
@@ -230,10 +230,8 @@ class ChannelPreview extends StatelessWidget {
text = parts.join(' ');
}
return RichText(
maxLines: 1,
overflow: TextOverflow.ellipsis,
text: _getDisplayText(
return Text.rich(
_getDisplayText(
text,
lastMessage.mentionedUsers,
lastMessage.attachments,
@@ -255,6 +253,8 @@ class ChannelPreview extends StatelessWidget {
: FontStyle.normal,
fontWeight: FontWeight.bold),
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
);
},
);