From 9dc56f55014c5b717ef6b0d7fa76d5e275a0d037 Mon Sep 17 00:00:00 2001 From: Leandro Borges Ferreira Date: Sun, 26 Feb 2023 17:29:35 +0100 Subject: [PATCH] Fixing div factory and making alignment symmetrical --- .../lib/src/message_widget/reactions/reactions_align.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/message_widget/reactions/reactions_align.dart b/packages/stream_chat_flutter/lib/src/message_widget/reactions/reactions_align.dart index 3fedbeff..ec149718 100644 --- a/packages/stream_chat_flutter/lib/src/message_widget/reactions/reactions_align.dart +++ b/packages/stream_chat_flutter/lib/src/message_widget/reactions/reactions_align.dart @@ -112,17 +112,17 @@ double _landScapeAlign( if (isAttachment) { result = 0; } else if (user?.id == message.user?.id) { - if (divFactor >= 1.7) { + if (divFactor >= 1.0) { result = 0; } else { // Small messages, it is simpler to align then. result = 1 - divFactor * 0.6; } } else { - if (divFactor >= 1.7) { + if (divFactor >= 1.0) { result = shiftFactor + maxWidth / constant; } else { - result = -(1.2 - divFactor * 0.6); + result = -(1 - divFactor * 0.6); } }