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