fix: instances where new naming wasn't applied
This commit is contained in:
@@ -33,16 +33,16 @@ class ChannelPreviewTheme {
|
|||||||
|
|
||||||
/// Copy with theme
|
/// Copy with theme
|
||||||
ChannelPreviewTheme copyWith({
|
ChannelPreviewTheme copyWith({
|
||||||
TextStyle? title,
|
TextStyle? titleStyle,
|
||||||
TextStyle? subtitle,
|
TextStyle? subtitleStyle,
|
||||||
TextStyle? lastMessageAt,
|
TextStyle? lastMessageAt,
|
||||||
AvatarThemeData? avatarTheme,
|
AvatarThemeData? avatarTheme,
|
||||||
Color? unreadCounterColor,
|
Color? unreadCounterColor,
|
||||||
double? indicatorIconSize,
|
double? indicatorIconSize,
|
||||||
}) =>
|
}) =>
|
||||||
ChannelPreviewTheme(
|
ChannelPreviewTheme(
|
||||||
titleStyle: title ?? this.titleStyle,
|
titleStyle: titleStyle ?? this.titleStyle,
|
||||||
subtitleStyle: subtitle ?? this.subtitleStyle,
|
subtitleStyle: subtitleStyle ?? this.subtitleStyle,
|
||||||
lastMessageAt: lastMessageAt ?? this.lastMessageAt,
|
lastMessageAt: lastMessageAt ?? this.lastMessageAt,
|
||||||
avatarTheme: avatarTheme ?? this.avatarTheme,
|
avatarTheme: avatarTheme ?? this.avatarTheme,
|
||||||
unreadCounterColor: unreadCounterColor ?? this.unreadCounterColor,
|
unreadCounterColor: unreadCounterColor ?? this.unreadCounterColor,
|
||||||
@@ -53,8 +53,8 @@ class ChannelPreviewTheme {
|
|||||||
ChannelPreviewTheme merge(ChannelPreviewTheme? other) {
|
ChannelPreviewTheme merge(ChannelPreviewTheme? other) {
|
||||||
if (other == null) return this;
|
if (other == null) return this;
|
||||||
return copyWith(
|
return copyWith(
|
||||||
title: titleStyle?.merge(other.titleStyle) ?? other.titleStyle,
|
titleStyle: titleStyle?.merge(other.titleStyle) ?? other.titleStyle,
|
||||||
subtitle:
|
subtitleStyle:
|
||||||
subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle,
|
subtitleStyle?.merge(other.subtitleStyle) ?? other.subtitleStyle,
|
||||||
lastMessageAt:
|
lastMessageAt:
|
||||||
lastMessageAt?.merge(other.lastMessageAt) ?? other.lastMessageAt,
|
lastMessageAt?.merge(other.lastMessageAt) ?? other.lastMessageAt,
|
||||||
|
|||||||
Reference in New Issue
Block a user