little fix

This commit is contained in:
Salvatore Giordano
2021-06-14 17:23:39 +02:00
parent 3a44117628
commit b31754d8d1
@@ -343,70 +343,69 @@ class StreamChatThemeData {
reactionIcons: [ reactionIcons: [
ReactionIcon( ReactionIcon(
type: 'love', type: 'love',
builder: (context, highlighted, size) => StreamSvgIcon.loveReaction( builder: (context, highlighted, size) {
final theme = StreamChatTheme.of(context);
return StreamSvgIcon.loveReaction(
color: highlighted color: highlighted
? colorTheme.accentBlue ? theme.colorTheme.accentBlue
: iconTheme.color!.withOpacity(.5), : theme.primaryIconTheme.color!.withOpacity(.5),
size: size, size: size,
), );
},
), ),
ReactionIcon( ReactionIcon(
type: 'like', type: 'like',
builder: (context, highlighted, size) => builder: (context, highlighted, size) {
StreamSvgIcon.thumbsUpReaction( final theme = StreamChatTheme.of(context);
return StreamSvgIcon.thumbsUpReaction(
color: highlighted color: highlighted
? colorTheme.accentBlue ? theme.colorTheme.accentBlue
: iconTheme.color!.withOpacity(.5), : theme.primaryIconTheme.color!.withOpacity(.5),
size: size, size: size,
), );
},
), ),
ReactionIcon( ReactionIcon(
type: 'sad', type: 'sad',
builder: (context, highlighted, size) => builder: (context, highlighted, size) {
StreamSvgIcon.thumbsDownReaction( final theme = StreamChatTheme.of(context);
return StreamSvgIcon.thumbsDownReaction(
color: highlighted color: highlighted
? colorTheme.accentBlue ? theme.colorTheme.accentBlue
: iconTheme.color!.withOpacity(.5), : theme.primaryIconTheme.color!.withOpacity(.5),
size: size, size: size,
), );
},
), ),
ReactionIcon( ReactionIcon(
type: 'haha', type: 'haha',
builder: (context, highlighted, size) => StreamSvgIcon.lolReaction( builder: (context, highlighted, size) {
final theme = StreamChatTheme.of(context);
return StreamSvgIcon.lolReaction(
color: highlighted color: highlighted
? colorTheme.accentBlue ? theme.colorTheme.accentBlue
: iconTheme.color!.withOpacity(.5), : theme.primaryIconTheme.color!.withOpacity(.5),
size: size, size: size,
), );
},
), ),
ReactionIcon( ReactionIcon(
type: 'wow', type: 'wow',
builder: (context, highlighted, size) => StreamSvgIcon.wutReaction( builder: (context, highlighted, size) {
final theme = StreamChatTheme.of(context);
return StreamSvgIcon.wutReaction(
color: highlighted color: highlighted
? colorTheme.accentBlue ? theme.colorTheme.accentBlue
: iconTheme.color!.withOpacity(.5), : theme.primaryIconTheme.color!.withOpacity(.5),
size: size, 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