Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Feb 4, 2024
1 parent a34e062 commit edf6b8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/src/widgets/message/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,15 @@ class Message extends StatelessWidget {
bool currentUserIsAuthor,
bool enlargeEmojis,
) {
Widget defaultMessage = (enlargeEmojis && hideBackgroundOnEmojiMessages)
final defaultMessage = (enlargeEmojis && hideBackgroundOnEmojiMessages)
? _messageBuilder()
: Container(
decoration: BoxDecoration(
borderRadius: borderRadius,
color: !currentUserIsAuthor || message.type == types.MessageType.image ? InheritedChatTheme.of(context).theme.secondaryColor : InheritedChatTheme.of(context).theme.primaryColor,
color: !currentUserIsAuthor ||
message.type == types.MessageType.image
? InheritedChatTheme.of(context).theme.secondaryColor
: InheritedChatTheme.of(context).theme.primaryColor,
),
child: ClipRRect(
borderRadius: borderRadius,
Expand Down

0 comments on commit edf6b8a

Please sign in to comment.