chore: run dartfmt on changed files
This commit is contained in:
@@ -118,13 +118,15 @@ class ChannelListPage extends StatelessWidget {
|
||||
channel: channel,
|
||||
),
|
||||
title: ChannelName(
|
||||
textStyle:
|
||||
StreamChatTheme.of(context).channelPreviewTheme.titleStyle!.copyWith(
|
||||
color: StreamChatTheme.of(context)
|
||||
.colorTheme
|
||||
.textHighEmphasis
|
||||
.withOpacity(opacity),
|
||||
),
|
||||
textStyle: StreamChatTheme.of(context)
|
||||
.channelPreviewTheme
|
||||
.titleStyle!
|
||||
.copyWith(
|
||||
color: StreamChatTheme.of(context)
|
||||
.colorTheme
|
||||
.textHighEmphasis
|
||||
.withOpacity(opacity),
|
||||
),
|
||||
),
|
||||
subtitle: Text(subtitle),
|
||||
trailing: channel.state!.unreadCount > 0
|
||||
|
||||
@@ -249,7 +249,8 @@ class ChannelPreview extends StatelessWidget {
|
||||
lastMessage.mentionedUsers,
|
||||
lastMessage.attachments,
|
||||
chatThemeData.channelPreviewTheme.subtitleStyle?.copyWith(
|
||||
color: chatThemeData.channelPreviewTheme.subtitleStyle?.color,
|
||||
color:
|
||||
chatThemeData.channelPreviewTheme.subtitleStyle?.color,
|
||||
fontStyle: (lastMessage.isSystem || lastMessage.isDeleted)
|
||||
? FontStyle.italic
|
||||
: FontStyle.normal),
|
||||
|
||||
@@ -54,7 +54,8 @@ class ChannelPreviewTheme {
|
||||
if (other == null) return this;
|
||||
return copyWith(
|
||||
title: titleStyle?.merge(other.titleStyle) ?? other.titleStyle,
|
||||
subtitle: subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle,
|
||||
subtitle:
|
||||
subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle,
|
||||
lastMessageAt:
|
||||
lastMessageAt?.merge(other.lastMessageAt) ?? other.lastMessageAt,
|
||||
avatarTheme: avatarTheme?.merge(other.avatarTheme) ?? other.avatarTheme,
|
||||
|
||||
Reference in New Issue
Block a user