add link TextStyle for messages
This commit is contained in:
@@ -49,6 +49,7 @@ class MessageText extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
).copyWith(
|
).copyWith(
|
||||||
|
a: messageTheme.messageLinks,
|
||||||
p: messageTheme.messageText,
|
p: messageTheme.messageText,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ class StreamChatState extends State<StreamChat> with WidgetsBindingObserver {
|
|||||||
messageBackgroundColor:
|
messageBackgroundColor:
|
||||||
themeData?.ownMessageTheme?.messageBackgroundColor,
|
themeData?.ownMessageTheme?.messageBackgroundColor,
|
||||||
messageAuthor: themeData?.ownMessageTheme?.messageAuthor,
|
messageAuthor: themeData?.ownMessageTheme?.messageAuthor,
|
||||||
messageMention: themeData?.ownMessageTheme?.messageMention,
|
messageMention: themeData?.ownMessageTheme?.messageLinks,
|
||||||
avatarTheme: defaultTheme.ownMessageTheme.avatarTheme.copyWith(
|
avatarTheme: defaultTheme.ownMessageTheme.avatarTheme.copyWith(
|
||||||
constraints: themeData?.ownMessageTheme?.avatarTheme?.constraints,
|
constraints: themeData?.ownMessageTheme?.avatarTheme?.constraints,
|
||||||
borderRadius: themeData?.ownMessageTheme?.avatarTheme?.borderRadius,
|
borderRadius: themeData?.ownMessageTheme?.avatarTheme?.borderRadius,
|
||||||
@@ -137,7 +137,7 @@ class StreamChatState extends State<StreamChat> with WidgetsBindingObserver {
|
|||||||
messageBackgroundColor:
|
messageBackgroundColor:
|
||||||
themeData?.otherMessageTheme?.messageBackgroundColor,
|
themeData?.otherMessageTheme?.messageBackgroundColor,
|
||||||
messageAuthor: themeData?.otherMessageTheme?.messageAuthor,
|
messageAuthor: themeData?.otherMessageTheme?.messageAuthor,
|
||||||
messageMention: themeData?.otherMessageTheme?.messageMention,
|
messageMention: themeData?.otherMessageTheme?.messageLinks,
|
||||||
avatarTheme: defaultTheme.otherMessageTheme.avatarTheme.copyWith(
|
avatarTheme: defaultTheme.otherMessageTheme.avatarTheme.copyWith(
|
||||||
constraints: themeData?.otherMessageTheme?.avatarTheme?.constraints,
|
constraints: themeData?.otherMessageTheme?.avatarTheme?.constraints,
|
||||||
borderRadius: themeData?.otherMessageTheme?.avatarTheme?.borderRadius,
|
borderRadius: themeData?.otherMessageTheme?.avatarTheme?.borderRadius,
|
||||||
|
|||||||
@@ -168,8 +168,8 @@ class StreamChatThemeData {
|
|||||||
this.ownMessageTheme.messageText,
|
this.ownMessageTheme.messageText,
|
||||||
messageAuthor: ownMessageTheme?.messageAuthor ??
|
messageAuthor: ownMessageTheme?.messageAuthor ??
|
||||||
this.ownMessageTheme.messageAuthor,
|
this.ownMessageTheme.messageAuthor,
|
||||||
messageMention: ownMessageTheme?.messageMention ??
|
messageMention: ownMessageTheme?.messageLinks ??
|
||||||
this.ownMessageTheme.messageMention,
|
this.ownMessageTheme.messageLinks,
|
||||||
createdAt:
|
createdAt:
|
||||||
ownMessageTheme?.createdAt ?? this.ownMessageTheme.createdAt,
|
ownMessageTheme?.createdAt ?? this.ownMessageTheme.createdAt,
|
||||||
replies: ownMessageTheme?.replies ?? this.ownMessageTheme.replies,
|
replies: ownMessageTheme?.replies ?? this.ownMessageTheme.replies,
|
||||||
@@ -184,8 +184,8 @@ class StreamChatThemeData {
|
|||||||
this.otherMessageTheme.messageText,
|
this.otherMessageTheme.messageText,
|
||||||
messageAuthor: otherMessageTheme?.messageAuthor ??
|
messageAuthor: otherMessageTheme?.messageAuthor ??
|
||||||
this.otherMessageTheme.messageAuthor,
|
this.otherMessageTheme.messageAuthor,
|
||||||
messageMention: otherMessageTheme?.messageMention ??
|
messageMention: otherMessageTheme?.messageLinks ??
|
||||||
this.otherMessageTheme.messageMention,
|
this.otherMessageTheme.messageLinks,
|
||||||
createdAt: otherMessageTheme?.createdAt ??
|
createdAt: otherMessageTheme?.createdAt ??
|
||||||
this.otherMessageTheme.createdAt,
|
this.otherMessageTheme.createdAt,
|
||||||
replies:
|
replies:
|
||||||
@@ -295,6 +295,9 @@ class StreamChatThemeData {
|
|||||||
width: 32,
|
width: 32,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
messageLinks: TextStyle(
|
||||||
|
color: accentColor,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
otherMessageTheme: MessageTheme(
|
otherMessageTheme: MessageTheme(
|
||||||
messageText: TextStyle(
|
messageText: TextStyle(
|
||||||
@@ -399,7 +402,7 @@ class AvatarTheme {
|
|||||||
class MessageTheme {
|
class MessageTheme {
|
||||||
final TextStyle messageText;
|
final TextStyle messageText;
|
||||||
final TextStyle messageAuthor;
|
final TextStyle messageAuthor;
|
||||||
final TextStyle messageMention;
|
final TextStyle messageLinks;
|
||||||
final TextStyle createdAt;
|
final TextStyle createdAt;
|
||||||
final TextStyle replies;
|
final TextStyle replies;
|
||||||
final Color messageBackgroundColor;
|
final Color messageBackgroundColor;
|
||||||
@@ -409,7 +412,7 @@ class MessageTheme {
|
|||||||
this.replies,
|
this.replies,
|
||||||
this.messageText,
|
this.messageText,
|
||||||
this.messageAuthor,
|
this.messageAuthor,
|
||||||
this.messageMention,
|
this.messageLinks,
|
||||||
this.messageBackgroundColor,
|
this.messageBackgroundColor,
|
||||||
this.avatarTheme,
|
this.avatarTheme,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
@@ -428,7 +431,7 @@ class MessageTheme {
|
|||||||
MessageTheme(
|
MessageTheme(
|
||||||
messageText: messageText ?? this.messageText,
|
messageText: messageText ?? this.messageText,
|
||||||
messageAuthor: messageAuthor ?? this.messageAuthor,
|
messageAuthor: messageAuthor ?? this.messageAuthor,
|
||||||
messageMention: messageMention ?? this.messageMention,
|
messageLinks: messageMention ?? this.messageLinks,
|
||||||
createdAt: createdAt ?? this.createdAt,
|
createdAt: createdAt ?? this.createdAt,
|
||||||
messageBackgroundColor:
|
messageBackgroundColor:
|
||||||
messageBackgroundColor ?? this.messageBackgroundColor,
|
messageBackgroundColor ?? this.messageBackgroundColor,
|
||||||
|
|||||||
Reference in New Issue
Block a user