From bc1761867d73a7fd73c1f326b94e4465ea4e4e1c Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Tue, 12 Jan 2021 12:27:42 +0530 Subject: [PATCH] [MessageListView] Make thread type messages all corners rounded Signed-off-by: Sahil Kumar --- lib/src/message_list_view.dart | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/src/message_list_view.dart b/lib/src/message_list_view.dart index cda0d64c..2e45dff7 100644 --- a/lib/src/message_list_view.dart +++ b/lib/src/message_list_view.dart @@ -857,14 +857,21 @@ class _MessageListViewState extends State { attachmentBorderRadiusGeometry: BorderRadius.only( topLeft: Radius.circular(attachmentBorderRadius), bottomLeft: Radius.circular( - timeDiff >= 1 || !isNextUserSame ? 0 : attachmentBorderRadius), + (timeDiff >= 1 || !isNextUserSame) && !hasReplies && !isThreadMessage + ? 0 + : attachmentBorderRadius, + ), topRight: Radius.circular(attachmentBorderRadius), bottomRight: Radius.circular(attachmentBorderRadius), ), attachmentPadding: const EdgeInsets.all(2), borderRadiusGeometry: BorderRadius.only( topLeft: Radius.circular(16), - bottomLeft: Radius.circular(timeDiff >= 1 || !isNextUserSame ? 0 : 16), + bottomLeft: Radius.circular( + (timeDiff >= 1 || !isNextUserSame) && !hasReplies && !isThreadMessage + ? 0 + : 16, + ), topRight: Radius.circular(16), bottomRight: Radius.circular(16), ),