chore: rename ChannelPreviewTheme.lastMessageAt to .lastMessageAtStyle
This commit is contained in:
@@ -182,8 +182,9 @@ class ChannelPreview extends StatelessWidget {
|
|||||||
|
|
||||||
return Text(
|
return Text(
|
||||||
stringDate,
|
stringDate,
|
||||||
style:
|
style: StreamChatTheme.of(context)
|
||||||
StreamChatTheme.of(context).channelPreviewTheme.lastMessageAt,
|
.channelPreviewTheme
|
||||||
|
.lastMessageAtStyle,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class MessageSearchItem extends StatelessWidget {
|
|||||||
|
|
||||||
return Text(
|
return Text(
|
||||||
stringDate,
|
stringDate,
|
||||||
style: StreamChatTheme.of(context).channelPreviewTheme.lastMessageAt,
|
style: StreamChatTheme.of(context).channelPreviewTheme.lastMessageAtStyle,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -296,7 +296,7 @@ class StreamChatThemeData {
|
|||||||
subtitleStyle: textTheme.footnote.copyWith(
|
subtitleStyle: textTheme.footnote.copyWith(
|
||||||
color: const Color(0xff7A7A7A),
|
color: const Color(0xff7A7A7A),
|
||||||
),
|
),
|
||||||
lastMessageAt: textTheme.footnote.copyWith(
|
lastMessageAtStyle: textTheme.footnote.copyWith(
|
||||||
color: colorTheme.textHighEmphasis.withOpacity(.5),
|
color: colorTheme.textHighEmphasis.withOpacity(.5),
|
||||||
),
|
),
|
||||||
indicatorIconSize: 16,
|
indicatorIconSize: 16,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ class ChannelPreviewTheme with Diagnosticable {
|
|||||||
const ChannelPreviewTheme({
|
const ChannelPreviewTheme({
|
||||||
this.titleStyle,
|
this.titleStyle,
|
||||||
this.subtitleStyle,
|
this.subtitleStyle,
|
||||||
this.lastMessageAt,
|
this.lastMessageAtStyle,
|
||||||
this.avatarTheme,
|
this.avatarTheme,
|
||||||
this.unreadCounterColor,
|
this.unreadCounterColor,
|
||||||
this.indicatorIconSize,
|
this.indicatorIconSize,
|
||||||
@@ -21,7 +21,7 @@ class ChannelPreviewTheme with Diagnosticable {
|
|||||||
final TextStyle? subtitleStyle;
|
final TextStyle? subtitleStyle;
|
||||||
|
|
||||||
/// Theme of last message at
|
/// Theme of last message at
|
||||||
final TextStyle? lastMessageAt;
|
final TextStyle? lastMessageAtStyle;
|
||||||
|
|
||||||
/// Avatar theme
|
/// Avatar theme
|
||||||
final AvatarThemeData? avatarTheme;
|
final AvatarThemeData? avatarTheme;
|
||||||
@@ -36,7 +36,7 @@ class ChannelPreviewTheme with Diagnosticable {
|
|||||||
ChannelPreviewTheme copyWith({
|
ChannelPreviewTheme copyWith({
|
||||||
TextStyle? titleStyle,
|
TextStyle? titleStyle,
|
||||||
TextStyle? subtitleStyle,
|
TextStyle? subtitleStyle,
|
||||||
TextStyle? lastMessageAt,
|
TextStyle? lastMessageAtStyle,
|
||||||
AvatarThemeData? avatarTheme,
|
AvatarThemeData? avatarTheme,
|
||||||
Color? unreadCounterColor,
|
Color? unreadCounterColor,
|
||||||
double? indicatorIconSize,
|
double? indicatorIconSize,
|
||||||
@@ -44,7 +44,7 @@ class ChannelPreviewTheme with Diagnosticable {
|
|||||||
ChannelPreviewTheme(
|
ChannelPreviewTheme(
|
||||||
titleStyle: titleStyle ?? this.titleStyle,
|
titleStyle: titleStyle ?? this.titleStyle,
|
||||||
subtitleStyle: subtitleStyle ?? this.subtitleStyle,
|
subtitleStyle: subtitleStyle ?? this.subtitleStyle,
|
||||||
lastMessageAt: lastMessageAt ?? this.lastMessageAt,
|
lastMessageAtStyle: lastMessageAtStyle ?? this.lastMessageAtStyle,
|
||||||
avatarTheme: avatarTheme ?? this.avatarTheme,
|
avatarTheme: avatarTheme ?? this.avatarTheme,
|
||||||
unreadCounterColor: unreadCounterColor ?? this.unreadCounterColor,
|
unreadCounterColor: unreadCounterColor ?? this.unreadCounterColor,
|
||||||
indicatorIconSize: indicatorIconSize ?? this.indicatorIconSize,
|
indicatorIconSize: indicatorIconSize ?? this.indicatorIconSize,
|
||||||
@@ -57,8 +57,8 @@ class ChannelPreviewTheme with Diagnosticable {
|
|||||||
titleStyle: titleStyle?.merge(other.titleStyle) ?? other.titleStyle,
|
titleStyle: titleStyle?.merge(other.titleStyle) ?? other.titleStyle,
|
||||||
subtitleStyle:
|
subtitleStyle:
|
||||||
subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle,
|
subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle,
|
||||||
lastMessageAt:
|
lastMessageAtStyle: lastMessageAtStyle?.merge(other.lastMessageAtStyle) ??
|
||||||
lastMessageAt?.merge(other.lastMessageAt) ?? other.lastMessageAt,
|
other.lastMessageAtStyle,
|
||||||
avatarTheme: avatarTheme?.merge(other.avatarTheme) ?? other.avatarTheme,
|
avatarTheme: avatarTheme?.merge(other.avatarTheme) ?? other.avatarTheme,
|
||||||
unreadCounterColor: other.unreadCounterColor,
|
unreadCounterColor: other.unreadCounterColor,
|
||||||
);
|
);
|
||||||
@@ -70,7 +70,7 @@ class ChannelPreviewTheme with Diagnosticable {
|
|||||||
properties
|
properties
|
||||||
..add(DiagnosticsProperty('titleStyle', titleStyle))
|
..add(DiagnosticsProperty('titleStyle', titleStyle))
|
||||||
..add(DiagnosticsProperty('subtitleStyle', subtitleStyle))
|
..add(DiagnosticsProperty('subtitleStyle', subtitleStyle))
|
||||||
..add(DiagnosticsProperty('lastMessageAtStyle', lastMessageAt))
|
..add(DiagnosticsProperty('lastMessageAtStyle', lastMessageAtStyle))
|
||||||
..add(DiagnosticsProperty('avatarTheme', avatarTheme))
|
..add(DiagnosticsProperty('avatarTheme', avatarTheme))
|
||||||
..add(ColorProperty('unreadCounterColor', unreadCounterColor));
|
..add(ColorProperty('unreadCounterColor', unreadCounterColor));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user