fix dark ui message background
This commit is contained in:
@@ -97,19 +97,25 @@ class StreamChatThemeData {
|
|||||||
primaryColor: theme.colorScheme.primary,
|
primaryColor: theme.colorScheme.primary,
|
||||||
secondaryColor: theme.colorScheme.secondary,
|
secondaryColor: theme.colorScheme.secondary,
|
||||||
backgroundColor: theme.scaffoldBackgroundColor,
|
backgroundColor: theme.scaffoldBackgroundColor,
|
||||||
channelTheme: ChannelTheme(
|
channelTheme: defaultTheme.channelTheme.copyWith(
|
||||||
inputGradient: LinearGradient(colors: [
|
inputGradient: LinearGradient(colors: [
|
||||||
theme.accentColor.withOpacity(.5),
|
theme.accentColor.withOpacity(.5),
|
||||||
theme.accentColor,
|
theme.accentColor,
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
ownMessageTheme: MessageTheme(
|
ownMessageTheme: defaultTheme.ownMessageTheme.copyWith(
|
||||||
replies: defaultTheme.ownMessageTheme.replies.copyWith(
|
replies: defaultTheme.ownMessageTheme.replies.copyWith(
|
||||||
color: theme.accentColor,
|
color: theme.accentColor,
|
||||||
),
|
),
|
||||||
|
messageLinks: TextStyle(
|
||||||
|
color: theme.accentColor,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
otherMessageTheme: MessageTheme(
|
otherMessageTheme: defaultTheme.otherMessageTheme.copyWith(
|
||||||
replies: defaultTheme.ownMessageTheme.replies.copyWith(
|
replies: defaultTheme.otherMessageTheme.replies.copyWith(
|
||||||
|
color: theme.accentColor,
|
||||||
|
),
|
||||||
|
messageLinks: TextStyle(
|
||||||
color: theme.accentColor,
|
color: theme.accentColor,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -315,6 +321,9 @@ class StreamChatThemeData {
|
|||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
),
|
),
|
||||||
|
messageLinks: TextStyle(
|
||||||
|
color: accentColor,
|
||||||
|
),
|
||||||
messageBackgroundColor: isDark ? Colors.black : Colors.white,
|
messageBackgroundColor: isDark ? Colors.black : Colors.white,
|
||||||
avatarTheme: AvatarTheme(
|
avatarTheme: AvatarTheme(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
|
|||||||
@@ -123,6 +123,7 @@ class _VideoAttachmentState extends State<VideoAttachment> {
|
|||||||
),
|
),
|
||||||
if (widget.attachment.title != null)
|
if (widget.attachment.title != null)
|
||||||
Material(
|
Material(
|
||||||
|
color: widget.messageTheme.messageBackgroundColor,
|
||||||
child: AttachmentTitle(
|
child: AttachmentTitle(
|
||||||
messageTheme: widget.messageTheme,
|
messageTheme: widget.messageTheme,
|
||||||
attachment: widget.attachment,
|
attachment: widget.attachment,
|
||||||
|
|||||||
Reference in New Issue
Block a user