Merge pull request #1643 from GetStream/fix/message-widget-width-factor
This commit is contained in:
@@ -16,6 +16,8 @@
|
|||||||
> **Note**
|
> **Note**
|
||||||
> This fix depends on the [image_gallery_saver](https://pub.dev/packages/image_gallery_saver) plugin. Make sure to add
|
> This fix depends on the [image_gallery_saver](https://pub.dev/packages/image_gallery_saver) plugin. Make sure to add
|
||||||
necessary permissions in your App as per the plugin documentation.
|
necessary permissions in your App as per the plugin documentation.
|
||||||
|
- [[#1642]](https://github.com/GetStream/stream-chat-flutter/issues/1642) Fixed `StreamMessageWidget.widthFactor` not
|
||||||
|
working on web and desktop platforms.
|
||||||
|
|
||||||
✅ Added
|
✅ Added
|
||||||
|
|
||||||
|
|||||||
@@ -188,19 +188,16 @@ 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)),
|
messageTheme: widget.messageTheme,
|
||||||
child: TextBubble(
|
message: widget.message,
|
||||||
messageTheme: widget.messageTheme,
|
textPadding: widget.textPadding,
|
||||||
message: widget.message,
|
textBuilder: widget.textBuilder,
|
||||||
textPadding: widget.textPadding,
|
isOnlyEmoji: widget.isOnlyEmoji,
|
||||||
textBuilder: widget.textBuilder,
|
hasQuotedMessage: widget.hasQuotedMessage,
|
||||||
isOnlyEmoji: widget.isOnlyEmoji,
|
hasUrlAttachments: widget.hasUrlAttachments,
|
||||||
hasQuotedMessage: widget.hasQuotedMessage,
|
onLinkTap: widget.onLinkTap,
|
||||||
hasUrlAttachments: widget.hasUrlAttachments,
|
onMentionTap: widget.onMentionTap,
|
||||||
onLinkTap: widget.onLinkTap,
|
|
||||||
onMentionTap: widget.onMentionTap,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
if (widget.hasUrlAttachments && !widget.hasQuotedMessage)
|
if (widget.hasUrlAttachments && !widget.hasQuotedMessage)
|
||||||
_buildUrlAttachment(),
|
_buildUrlAttachment(),
|
||||||
|
|||||||
Reference in New Issue
Block a user