From 8f5ef5f05c4a4d415d573b2cf61364f9ba939bc7 Mon Sep 17 00:00:00 2001 From: Marcelo Amaro Date: Thu, 5 Sep 2024 18:28:33 -0300 Subject: [PATCH] bugfix: strech DSMessageBubble only when using default size constraints --- lib/src/widgets/chat/ds_message_bubble.widget.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/widgets/chat/ds_message_bubble.widget.dart b/lib/src/widgets/chat/ds_message_bubble.widget.dart index 1dc169af..17a1398c 100644 --- a/lib/src/widgets/chat/ds_message_bubble.widget.dart +++ b/lib/src/widgets/chat/ds_message_bubble.widget.dart @@ -75,7 +75,9 @@ class DSMessageBubble extends StatelessWidget { color: style.bubbleBackgroundColor(align), child: Column( mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.stretch, + crossAxisAlignment: shouldUseDefaultSize + ? CrossAxisAlignment.stretch + : CrossAxisAlignment.start, children: [ if (replyContent != null) DSReplyContainer(