chore(ui): address PR feedback
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -242,20 +242,19 @@ class ChannelPreview extends StatelessWidget {
|
|||||||
|
|
||||||
text = parts.join(' ');
|
text = parts.join(' ');
|
||||||
|
|
||||||
final chatThemeData = StreamChatTheme.of(context);
|
final channelPreviewTheme = ChannelPreviewTheme.of(context);
|
||||||
return Text.rich(
|
return Text.rich(
|
||||||
_getDisplayText(
|
_getDisplayText(
|
||||||
text,
|
text,
|
||||||
lastMessage.mentionedUsers,
|
lastMessage.mentionedUsers,
|
||||||
lastMessage.attachments,
|
lastMessage.attachments,
|
||||||
chatThemeData.channelPreviewTheme.subtitleStyle?.copyWith(
|
channelPreviewTheme.subtitleStyle?.copyWith(
|
||||||
color:
|
color: channelPreviewTheme.subtitleStyle?.color,
|
||||||
chatThemeData.channelPreviewTheme.subtitleStyle?.color,
|
|
||||||
fontStyle: (lastMessage.isSystem || lastMessage.isDeleted)
|
fontStyle: (lastMessage.isSystem || lastMessage.isDeleted)
|
||||||
? FontStyle.italic
|
? FontStyle.italic
|
||||||
: FontStyle.normal),
|
: FontStyle.normal),
|
||||||
chatThemeData.channelPreviewTheme.subtitleStyle?.copyWith(
|
channelPreviewTheme.subtitleStyle?.copyWith(
|
||||||
color: chatThemeData.channelPreviewTheme.subtitleStyle?.color,
|
color: channelPreviewTheme.subtitleStyle?.color,
|
||||||
fontStyle: (lastMessage.isSystem || lastMessage.isDeleted)
|
fontStyle: (lastMessage.isSystem || lastMessage.isDeleted)
|
||||||
? FontStyle.italic
|
? FontStyle.italic
|
||||||
: FontStyle.normal,
|
: FontStyle.normal,
|
||||||
|
|||||||
Reference in New Issue
Block a user