Skip to content

Commit

Permalink
fix: set size to bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Rossi committed Nov 28, 2023
1 parent f7cd019 commit 8f44257
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions lib/src/widgets/chat/video/ds_video_message_bubble.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ class _DSVideoMessageBubbleState extends State<DSVideoMessageBubble>
: DSColors.neutralDarkCity;

return DSMessageBubble(
defaultMaxSize: DSUtils.bubbleMinSize,
shouldUseDefaultSize: true,
replyContent: widget.replyContent,
align: widget.align,
borderRadius: widget.borderRadius,
Expand Down Expand Up @@ -224,16 +226,19 @@ class _DSVideoMessageBubbleState extends State<DSVideoMessageBubble>
: _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,
),
),
),
],
Expand Down

0 comments on commit 8f44257

Please sign in to comment.