From 3dc4e9c0168417103ff88b142acb74bcd59aa7fd Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Mon, 17 May 2021 19:10:01 +0530 Subject: [PATCH] fix: paint bubble --- .../stream_chat_flutter/lib/src/reaction_bubble.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/reaction_bubble.dart b/packages/stream_chat_flutter/lib/src/reaction_bubble.dart index 1929e5bf..afdf0ec5 100644 --- a/packages/stream_chat_flutter/lib/src/reaction_bubble.dart +++ b/packages/stream_chat_flutter/lib/src/reaction_bubble.dart @@ -260,8 +260,8 @@ class ReactionBubblePainter extends CustomPainter { ..style = PaintingStyle.stroke; const dy = -2.2; - const startAngle = 1.1; - const sweepAngle = 1.2; + final startAngle = flipTail ? -0.1 : 1.1; + final sweepAngle = flipTail ? -1.2 : 1.2; final path = Path() ..addArc( Rect.fromCircle( @@ -280,8 +280,8 @@ class ReactionBubblePainter extends CustomPainter { ..strokeWidth = 1; const dy = -2.2; - const startAngle = 1; - const sweepAngle = 1.3; + final startAngle = flipTail ? -0.0 : 1.0; + final sweepAngle = flipTail ? -1.3 : 1.3; final path = Path() ..addArc( Rect.fromCircle( @@ -301,8 +301,8 @@ class ReactionBubblePainter extends CustomPainter { ..style = PaintingStyle.fill; const dy = -2.2; - const startAngle = 1.1; - const sweepAngle = 1.2; + final startAngle = flipTail ? -0.1 : 1.1; + final sweepAngle = flipTail ? -1.2 : 1.2; final path = Path() ..addArc( Rect.fromCircle(