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) {
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