feat: introduce quotedMessageAttachmentThumbnailBuilders.
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -131,6 +131,7 @@ class StreamMessageInput extends StatefulWidget {
|
|||||||
this.mentionAllAppUsers = false,
|
this.mentionAllAppUsers = false,
|
||||||
this.sendButtonBuilder,
|
this.sendButtonBuilder,
|
||||||
this.quotedMessageBuilder,
|
this.quotedMessageBuilder,
|
||||||
|
this.quotedMessageAttachmentThumbnailBuilders,
|
||||||
this.shouldKeepFocusAfterMessage,
|
this.shouldKeepFocusAfterMessage,
|
||||||
this.validator = _defaultValidator,
|
this.validator = _defaultValidator,
|
||||||
this.restorationId,
|
this.restorationId,
|
||||||
@@ -238,6 +239,13 @@ class StreamMessageInput extends StatefulWidget {
|
|||||||
@Deprecated('Use `mediaAttachmentBuilder` instead.')
|
@Deprecated('Use `mediaAttachmentBuilder` instead.')
|
||||||
final Map<String, AttachmentThumbnailBuilder>? attachmentThumbnailBuilders;
|
final Map<String, AttachmentThumbnailBuilder>? attachmentThumbnailBuilders;
|
||||||
|
|
||||||
|
/// Map that defines a thumbnail builder for an attachment type.
|
||||||
|
///
|
||||||
|
/// This is used to build the thumbnail for the attachment in the quoted
|
||||||
|
/// message.
|
||||||
|
final Map<String, QuotedMessageAttachmentThumbnailBuilder>?
|
||||||
|
quotedMessageAttachmentThumbnailBuilders;
|
||||||
|
|
||||||
/// The focus node associated to the TextField.
|
/// The focus node associated to the TextField.
|
||||||
final FocusNode? focusNode;
|
final FocusNode? focusNode;
|
||||||
|
|
||||||
@@ -1173,7 +1181,8 @@ class StreamMessageInputState extends State<StreamMessageInput>
|
|||||||
messageTheme: _streamChatTheme.otherMessageTheme,
|
messageTheme: _streamChatTheme.otherMessageTheme,
|
||||||
padding: const EdgeInsets.fromLTRB(8, 8, 8, 0),
|
padding: const EdgeInsets.fromLTRB(8, 8, 8, 0),
|
||||||
onQuotedMessageClear: widget.onQuotedMessageCleared,
|
onQuotedMessageClear: widget.onQuotedMessageCleared,
|
||||||
attachmentThumbnailBuilders: widget.attachmentThumbnailBuilders,
|
attachmentThumbnailBuilders:
|
||||||
|
widget.quotedMessageAttachmentThumbnailBuilders,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user