chore: run dartfmt on changed files

This commit is contained in:
groovinchip
2021-07-30 13:44:53 -04:00
parent 6765854132
commit 019bd5d5da
3 changed files with 13 additions and 9 deletions
@@ -118,13 +118,15 @@ class ChannelListPage extends StatelessWidget {
channel: channel, channel: channel,
), ),
title: ChannelName( title: ChannelName(
textStyle: textStyle: StreamChatTheme.of(context)
StreamChatTheme.of(context).channelPreviewTheme.titleStyle!.copyWith( .channelPreviewTheme
color: StreamChatTheme.of(context) .titleStyle!
.colorTheme .copyWith(
.textHighEmphasis color: StreamChatTheme.of(context)
.withOpacity(opacity), .colorTheme
), .textHighEmphasis
.withOpacity(opacity),
),
), ),
subtitle: Text(subtitle), subtitle: Text(subtitle),
trailing: channel.state!.unreadCount > 0 trailing: channel.state!.unreadCount > 0
@@ -249,7 +249,8 @@ class ChannelPreview extends StatelessWidget {
lastMessage.mentionedUsers, lastMessage.mentionedUsers,
lastMessage.attachments, lastMessage.attachments,
chatThemeData.channelPreviewTheme.subtitleStyle?.copyWith( chatThemeData.channelPreviewTheme.subtitleStyle?.copyWith(
color: chatThemeData.channelPreviewTheme.subtitleStyle?.color, color:
chatThemeData.channelPreviewTheme.subtitleStyle?.color,
fontStyle: (lastMessage.isSystem || lastMessage.isDeleted) fontStyle: (lastMessage.isSystem || lastMessage.isDeleted)
? FontStyle.italic ? FontStyle.italic
: FontStyle.normal), : FontStyle.normal),
@@ -54,7 +54,8 @@ class ChannelPreviewTheme {
if (other == null) return this; if (other == null) return this;
return copyWith( return copyWith(
title: titleStyle?.merge(other.titleStyle) ?? other.titleStyle, title: titleStyle?.merge(other.titleStyle) ?? other.titleStyle,
subtitle: subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle, subtitle:
subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle,
lastMessageAt: lastMessageAt:
lastMessageAt?.merge(other.lastMessageAt) ?? other.lastMessageAt, lastMessageAt?.merge(other.lastMessageAt) ?? other.lastMessageAt,
avatarTheme: avatarTheme?.merge(other.avatarTheme) ?? other.avatarTheme, avatarTheme: avatarTheme?.merge(other.avatarTheme) ?? other.avatarTheme,