From cb69dd036a33b690f2ea9998c1fbff1652ceb6ef Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Fri, 8 Jan 2021 12:02:17 +0530 Subject: [PATCH] [Reaction Bubble] Fix tail alignment Signed-off-by: Sahil Kumar --- lib/src/reaction_bubble.dart | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/src/reaction_bubble.dart b/lib/src/reaction_bubble.dart index d8f8c623..5f416bab 100644 --- a/lib/src/reaction_bubble.dart +++ b/lib/src/reaction_bubble.dart @@ -134,16 +134,11 @@ class ReactionBubble extends StatelessWidget { borderColor, ), ); - - if (!flipTail) { - return tail; - } else { - return Transform( - transform: Matrix4.rotationY(pi), - alignment: Alignment.center, - child: tail, - ); - } + return Transform( + transform: Matrix4.rotationY(flipTail ? 0 : pi), + alignment: Alignment.center, + child: tail, + ); } }