fix(ui): fix MessageWidget.widthFactor not working on web/desktop.
Signed-off-by: xsahil03x <xdsahil@gmail.com>
This commit is contained in:
@@ -188,19 +188,16 @@ class _MessageCardState extends State<MessageCard> {
|
||||
attachmentPadding: widget.attachmentPadding,
|
||||
),
|
||||
if (!widget.isGiphy)
|
||||
ConstrainedBox(
|
||||
constraints: BoxConstraints.loose(const Size.fromWidth(500)),
|
||||
child: TextBubble(
|
||||
messageTheme: widget.messageTheme,
|
||||
message: widget.message,
|
||||
textPadding: widget.textPadding,
|
||||
textBuilder: widget.textBuilder,
|
||||
isOnlyEmoji: widget.isOnlyEmoji,
|
||||
hasQuotedMessage: widget.hasQuotedMessage,
|
||||
hasUrlAttachments: widget.hasUrlAttachments,
|
||||
onLinkTap: widget.onLinkTap,
|
||||
onMentionTap: widget.onMentionTap,
|
||||
),
|
||||
TextBubble(
|
||||
messageTheme: widget.messageTheme,
|
||||
message: widget.message,
|
||||
textPadding: widget.textPadding,
|
||||
textBuilder: widget.textBuilder,
|
||||
isOnlyEmoji: widget.isOnlyEmoji,
|
||||
hasQuotedMessage: widget.hasQuotedMessage,
|
||||
hasUrlAttachments: widget.hasUrlAttachments,
|
||||
onLinkTap: widget.onLinkTap,
|
||||
onMentionTap: widget.onMentionTap,
|
||||
),
|
||||
if (widget.hasUrlAttachments && !widget.hasQuotedMessage)
|
||||
_buildUrlAttachment(),
|
||||
|
||||
Reference in New Issue
Block a user