diff --git a/packages/stream_chat_flutter/lib/src/channel_preview.dart b/packages/stream_chat_flutter/lib/src/channel_preview.dart index 2a9b82da..8a9eb9f1 100644 --- a/packages/stream_chat_flutter/lib/src/channel_preview.dart +++ b/packages/stream_chat_flutter/lib/src/channel_preview.dart @@ -182,8 +182,9 @@ class ChannelPreview extends StatelessWidget { return Text( stringDate, - style: - StreamChatTheme.of(context).channelPreviewTheme.lastMessageAt, + style: StreamChatTheme.of(context) + .channelPreviewTheme + .lastMessageAtStyle, ); }, ); diff --git a/packages/stream_chat_flutter/lib/src/message_search_item.dart b/packages/stream_chat_flutter/lib/src/message_search_item.dart index 9bb0ffd1..c465fb44 100644 --- a/packages/stream_chat_flutter/lib/src/message_search_item.dart +++ b/packages/stream_chat_flutter/lib/src/message_search_item.dart @@ -93,7 +93,7 @@ class MessageSearchItem extends StatelessWidget { return Text( stringDate, - style: StreamChatTheme.of(context).channelPreviewTheme.lastMessageAt, + style: StreamChatTheme.of(context).channelPreviewTheme.lastMessageAtStyle, ); } diff --git a/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart b/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart index 000f5aab..b323833a 100644 --- a/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart +++ b/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart @@ -296,7 +296,7 @@ class StreamChatThemeData { subtitleStyle: textTheme.footnote.copyWith( color: const Color(0xff7A7A7A), ), - lastMessageAt: textTheme.footnote.copyWith( + lastMessageAtStyle: textTheme.footnote.copyWith( color: colorTheme.textHighEmphasis.withOpacity(.5), ), indicatorIconSize: 16, diff --git a/packages/stream_chat_flutter/lib/src/theme/channel_preview_theme.dart b/packages/stream_chat_flutter/lib/src/theme/channel_preview_theme.dart index af3b35b5..9f264750 100644 --- a/packages/stream_chat_flutter/lib/src/theme/channel_preview_theme.dart +++ b/packages/stream_chat_flutter/lib/src/theme/channel_preview_theme.dart @@ -8,7 +8,7 @@ class ChannelPreviewTheme with Diagnosticable { const ChannelPreviewTheme({ this.titleStyle, this.subtitleStyle, - this.lastMessageAt, + this.lastMessageAtStyle, this.avatarTheme, this.unreadCounterColor, this.indicatorIconSize, @@ -21,7 +21,7 @@ class ChannelPreviewTheme with Diagnosticable { final TextStyle? subtitleStyle; /// Theme of last message at - final TextStyle? lastMessageAt; + final TextStyle? lastMessageAtStyle; /// Avatar theme final AvatarThemeData? avatarTheme; @@ -36,7 +36,7 @@ class ChannelPreviewTheme with Diagnosticable { ChannelPreviewTheme copyWith({ TextStyle? titleStyle, TextStyle? subtitleStyle, - TextStyle? lastMessageAt, + TextStyle? lastMessageAtStyle, AvatarThemeData? avatarTheme, Color? unreadCounterColor, double? indicatorIconSize, @@ -44,7 +44,7 @@ class ChannelPreviewTheme with Diagnosticable { ChannelPreviewTheme( titleStyle: titleStyle ?? this.titleStyle, subtitleStyle: subtitleStyle ?? this.subtitleStyle, - lastMessageAt: lastMessageAt ?? this.lastMessageAt, + lastMessageAtStyle: lastMessageAtStyle ?? this.lastMessageAtStyle, avatarTheme: avatarTheme ?? this.avatarTheme, unreadCounterColor: unreadCounterColor ?? this.unreadCounterColor, indicatorIconSize: indicatorIconSize ?? this.indicatorIconSize, @@ -57,8 +57,8 @@ class ChannelPreviewTheme with Diagnosticable { titleStyle: titleStyle?.merge(other.titleStyle) ?? other.titleStyle, subtitleStyle: subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle, - lastMessageAt: - lastMessageAt?.merge(other.lastMessageAt) ?? other.lastMessageAt, + lastMessageAtStyle: lastMessageAtStyle?.merge(other.lastMessageAtStyle) ?? + other.lastMessageAtStyle, avatarTheme: avatarTheme?.merge(other.avatarTheme) ?? other.avatarTheme, unreadCounterColor: other.unreadCounterColor, ); @@ -70,7 +70,7 @@ class ChannelPreviewTheme with Diagnosticable { properties ..add(DiagnosticsProperty('titleStyle', titleStyle)) ..add(DiagnosticsProperty('subtitleStyle', subtitleStyle)) - ..add(DiagnosticsProperty('lastMessageAtStyle', lastMessageAt)) + ..add(DiagnosticsProperty('lastMessageAtStyle', lastMessageAtStyle)) ..add(DiagnosticsProperty('avatarTheme', avatarTheme)) ..add(ColorProperty('unreadCounterColor', unreadCounterColor)); }