little fix
This commit is contained in:
@@ -343,70 +343,69 @@ class StreamChatThemeData {
|
|||||||
reactionIcons: [
|
reactionIcons: [
|
||||||
ReactionIcon(
|
ReactionIcon(
|
||||||
type: 'love',
|
type: 'love',
|
||||||
builder: (context, highlighted, size) => StreamSvgIcon.loveReaction(
|
builder: (context, highlighted, size) {
|
||||||
color: highlighted
|
final theme = StreamChatTheme.of(context);
|
||||||
? colorTheme.accentBlue
|
return StreamSvgIcon.loveReaction(
|
||||||
: iconTheme.color!.withOpacity(.5),
|
color: highlighted
|
||||||
size: size,
|
? theme.colorTheme.accentBlue
|
||||||
),
|
: theme.primaryIconTheme.color!.withOpacity(.5),
|
||||||
|
size: size,
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
ReactionIcon(
|
ReactionIcon(
|
||||||
type: 'like',
|
type: 'like',
|
||||||
builder: (context, highlighted, size) =>
|
builder: (context, highlighted, size) {
|
||||||
StreamSvgIcon.thumbsUpReaction(
|
final theme = StreamChatTheme.of(context);
|
||||||
color: highlighted
|
return StreamSvgIcon.thumbsUpReaction(
|
||||||
? colorTheme.accentBlue
|
color: highlighted
|
||||||
: iconTheme.color!.withOpacity(.5),
|
? theme.colorTheme.accentBlue
|
||||||
size: size,
|
: theme.primaryIconTheme.color!.withOpacity(.5),
|
||||||
),
|
size: size,
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
ReactionIcon(
|
ReactionIcon(
|
||||||
type: 'sad',
|
type: 'sad',
|
||||||
builder: (context, highlighted, size) =>
|
builder: (context, highlighted, size) {
|
||||||
StreamSvgIcon.thumbsDownReaction(
|
final theme = StreamChatTheme.of(context);
|
||||||
color: highlighted
|
return StreamSvgIcon.thumbsDownReaction(
|
||||||
? colorTheme.accentBlue
|
color: highlighted
|
||||||
: iconTheme.color!.withOpacity(.5),
|
? theme.colorTheme.accentBlue
|
||||||
size: size,
|
: theme.primaryIconTheme.color!.withOpacity(.5),
|
||||||
),
|
size: size,
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
ReactionIcon(
|
ReactionIcon(
|
||||||
type: 'haha',
|
type: 'haha',
|
||||||
builder: (context, highlighted, size) => StreamSvgIcon.lolReaction(
|
builder: (context, highlighted, size) {
|
||||||
color: highlighted
|
final theme = StreamChatTheme.of(context);
|
||||||
? colorTheme.accentBlue
|
return StreamSvgIcon.lolReaction(
|
||||||
: iconTheme.color!.withOpacity(.5),
|
color: highlighted
|
||||||
size: size,
|
? theme.colorTheme.accentBlue
|
||||||
),
|
: theme.primaryIconTheme.color!.withOpacity(.5),
|
||||||
|
size: size,
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
ReactionIcon(
|
ReactionIcon(
|
||||||
type: 'wow',
|
type: 'wow',
|
||||||
builder: (context, highlighted, size) => StreamSvgIcon.wutReaction(
|
builder: (context, highlighted, size) {
|
||||||
color: highlighted
|
final theme = StreamChatTheme.of(context);
|
||||||
? colorTheme.accentBlue
|
return StreamSvgIcon.wutReaction(
|
||||||
: iconTheme.color!.withOpacity(.5),
|
color: highlighted
|
||||||
size: size,
|
? theme.colorTheme.accentBlue
|
||||||
),
|
: theme.primaryIconTheme.color!.withOpacity(.5),
|
||||||
|
size: size,
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ReactionTheme {
|
|
||||||
final double singleSize;
|
|
||||||
final double size;
|
|
||||||
final Color ownReactionColor;
|
|
||||||
final Color otherReactionColor;
|
|
||||||
|
|
||||||
const ReactionTheme({
|
|
||||||
required this.singleSize,
|
|
||||||
required this.size,
|
|
||||||
required this.ownReactionColor,
|
|
||||||
required this.otherReactionColor,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Class for holding text theme
|
/// Class for holding text theme
|
||||||
class TextTheme {
|
class TextTheme {
|
||||||
/// Initialise light text theme
|
/// Initialise light text theme
|
||||||
|
|||||||
Reference in New Issue
Block a user