fix channel header text theme
This commit is contained in:
@@ -137,6 +137,7 @@ class ChannelHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
showMessage: showConnectionStateTile ? showStatus : false,
|
showMessage: showConnectionStateTile ? showStatus : false,
|
||||||
message: statusString,
|
message: statusString,
|
||||||
child: AppBar(
|
child: AppBar(
|
||||||
|
textTheme: Theme.of(context).textTheme,
|
||||||
brightness: Theme.of(context).brightness,
|
brightness: Theme.of(context).brightness,
|
||||||
elevation: 1,
|
elevation: 1,
|
||||||
leading: leadingWidget,
|
leading: leadingWidget,
|
||||||
|
|||||||
@@ -29,8 +29,11 @@ class ChannelName extends StatelessWidget {
|
|||||||
return StreamBuilder<Map<String, dynamic>>(
|
return StreamBuilder<Map<String, dynamic>>(
|
||||||
stream: channel.extraDataStream,
|
stream: channel.extraDataStream,
|
||||||
initialData: channel.extraData,
|
initialData: channel.extraData,
|
||||||
builder: (context, snapshot) =>
|
builder: (context, snapshot) => _buildName(
|
||||||
_buildName(snapshot.data!, channel.state?.members, client),
|
snapshot.data!,
|
||||||
|
channel.state?.members,
|
||||||
|
client,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -230,22 +230,23 @@ class StreamChatThemeData {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
channelPreviewTheme: ChannelPreviewTheme(
|
channelPreviewTheme: ChannelPreviewTheme(
|
||||||
unreadCounterColor: colorTheme.accentRed,
|
unreadCounterColor: colorTheme.accentRed,
|
||||||
avatarTheme: AvatarTheme(
|
avatarTheme: AvatarTheme(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
constraints: const BoxConstraints.tightFor(
|
constraints: const BoxConstraints.tightFor(
|
||||||
height: 40,
|
height: 40,
|
||||||
width: 40,
|
width: 40,
|
||||||
),
|
|
||||||
),
|
),
|
||||||
title: textTheme.bodyBold,
|
),
|
||||||
subtitle: textTheme.footnote.copyWith(
|
title: textTheme.bodyBold,
|
||||||
color: const Color(0xff7A7A7A),
|
subtitle: textTheme.footnote.copyWith(
|
||||||
),
|
color: const Color(0xff7A7A7A),
|
||||||
lastMessageAt: textTheme.footnote.copyWith(
|
),
|
||||||
color: colorTheme.black.withOpacity(.5),
|
lastMessageAt: textTheme.footnote.copyWith(
|
||||||
),
|
color: colorTheme.black.withOpacity(.5),
|
||||||
indicatorIconSize: 16),
|
),
|
||||||
|
indicatorIconSize: 16,
|
||||||
|
),
|
||||||
channelListHeaderTheme: ChannelListHeaderTheme(
|
channelListHeaderTheme: ChannelListHeaderTheme(
|
||||||
avatarTheme: AvatarTheme(
|
avatarTheme: AvatarTheme(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
@@ -1186,7 +1187,8 @@ class MessageInputTheme {
|
|||||||
actionButtonIdleColor: other.actionButtonIdleColor,
|
actionButtonIdleColor: other.actionButtonIdleColor,
|
||||||
sendButtonColor: other.sendButtonColor,
|
sendButtonColor: other.sendButtonColor,
|
||||||
sendButtonIdleColor: other.sendButtonIdleColor,
|
sendButtonIdleColor: other.sendButtonIdleColor,
|
||||||
inputTextStyle: other.inputTextStyle,
|
inputTextStyle:
|
||||||
|
inputTextStyle?.merge(other.inputTextStyle) ?? other.inputTextStyle,
|
||||||
inputDecoration: inputDecoration?.merge(other.inputDecoration) ??
|
inputDecoration: inputDecoration?.merge(other.inputDecoration) ??
|
||||||
other.inputDecoration,
|
other.inputDecoration,
|
||||||
activeBorderGradient: other.activeBorderGradient,
|
activeBorderGradient: other.activeBorderGradient,
|
||||||
|
|||||||
Reference in New Issue
Block a user