From 2f3e6ced0d5dfd7c3952b99c33dc25dcb050fb79 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Fri, 8 Jan 2021 16:29:13 +0530 Subject: [PATCH] [MessageReactionsModal] Fix reaction bubble alignment Signed-off-by: Sahil Kumar --- lib/src/message_reactions_modal.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/src/message_reactions_modal.dart b/lib/src/message_reactions_modal.dart index 375f5e0c..0527710a 100644 --- a/lib/src/message_reactions_modal.dart +++ b/lib/src/message_reactions_modal.dart @@ -227,16 +227,19 @@ class MessageReactionsModal extends StatelessWidget { ), Positioned( child: Align( - alignment: Alignment.centerLeft, + alignment: reverse + ? Alignment.centerRight + : Alignment.centerLeft, child: ReactionBubble( reactions: [reaction], + flipTail: !reverse, borderColor: messageTheme.reactionsBorderColor, backgroundColor: messageTheme.reactionsBackgroundColor, highlightOwnReactions: false, ), ), - bottom: 4, + bottom: 6, left: isCurrentUser ? 0 : null, right: isCurrentUser ? 0 : null, ),