From 8f442570475d2ad70310a8670850385eb32b79bb Mon Sep 17 00:00:00 2001 From: Andre Rossi Date: Tue, 28 Nov 2023 18:16:16 -0300 Subject: [PATCH] fix: set size to bubble --- .../video/ds_video_message_bubble.widget.dart | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/lib/src/widgets/chat/video/ds_video_message_bubble.widget.dart b/lib/src/widgets/chat/video/ds_video_message_bubble.widget.dart index 2e565598..153f445d 100644 --- a/lib/src/widgets/chat/video/ds_video_message_bubble.widget.dart +++ b/lib/src/widgets/chat/video/ds_video_message_bubble.widget.dart @@ -128,6 +128,8 @@ class _DSVideoMessageBubbleState extends State : DSColors.neutralDarkCity; return DSMessageBubble( + defaultMaxSize: DSUtils.bubbleMinSize, + shouldUseDefaultSize: true, replyContent: widget.replyContent, align: widget.align, borderRadius: widget.borderRadius, @@ -224,16 +226,19 @@ class _DSVideoMessageBubbleState extends State : _buidErrorIcon(), ), if (widget.text?.isNotEmpty ?? false) - Padding( - padding: const EdgeInsets.symmetric( - vertical: 8.0, - horizontal: 16.0, - ), - child: DSShowMoreText( - text: widget.text!, - align: widget.align, - style: widget.style, - maxWidth: constraints.maxWidth, + SizedBox( + width: DSUtils.bubbleMinSize, + child: Padding( + padding: const EdgeInsets.symmetric( + vertical: 8.0, + horizontal: 16.0, + ), + child: DSShowMoreText( + text: widget.text!, + align: widget.align, + style: widget.style, + maxWidth: constraints.maxWidth, + ), ), ), ],