corrected attachment builders
This commit is contained in:
@@ -96,7 +96,7 @@ class MessageWidget extends StatefulWidget {
|
|||||||
this.bottomRowBuilder,
|
this.bottomRowBuilder,
|
||||||
this.deletedBottomRowBuilder,
|
this.deletedBottomRowBuilder,
|
||||||
this.onReturnAction,
|
this.onReturnAction,
|
||||||
Map<String, AttachmentBuilder>? customAttachmentBuilders,
|
this.customAttachmentBuilders,
|
||||||
this.readList,
|
this.readList,
|
||||||
this.padding,
|
this.padding,
|
||||||
this.textPadding = const EdgeInsets.symmetric(
|
this.textPadding = const EdgeInsets.symmetric(
|
||||||
@@ -406,6 +406,9 @@ class MessageWidget extends StatefulWidget {
|
|||||||
/// Builder for respective attachment types
|
/// Builder for respective attachment types
|
||||||
final Map<String, AttachmentBuilder> attachmentBuilders;
|
final Map<String, AttachmentBuilder> attachmentBuilders;
|
||||||
|
|
||||||
|
/// Builder for respective attachment types (user facing builder)
|
||||||
|
final Map<String, AttachmentBuilder>? customAttachmentBuilders;
|
||||||
|
|
||||||
/// Center user avatar with bottom of the message
|
/// Center user avatar with bottom of the message
|
||||||
final bool translateUserAvatar;
|
final bool translateUserAvatar;
|
||||||
|
|
||||||
@@ -530,7 +533,7 @@ class MessageWidget extends StatefulWidget {
|
|||||||
showPinButton: showPinButton ?? this.showPinButton,
|
showPinButton: showPinButton ?? this.showPinButton,
|
||||||
showPinHighlight: showPinHighlight ?? this.showPinHighlight,
|
showPinHighlight: showPinHighlight ?? this.showPinHighlight,
|
||||||
customAttachmentBuilders:
|
customAttachmentBuilders:
|
||||||
customAttachmentBuilders ?? attachmentBuilders,
|
customAttachmentBuilders ?? this.customAttachmentBuilders,
|
||||||
translateUserAvatar: translateUserAvatar ?? this.translateUserAvatar,
|
translateUserAvatar: translateUserAvatar ?? this.translateUserAvatar,
|
||||||
onQuotedMessageTap: onQuotedMessageTap ?? this.onQuotedMessageTap,
|
onQuotedMessageTap: onQuotedMessageTap ?? this.onQuotedMessageTap,
|
||||||
onMessageTap: onMessageTap ?? this.onMessageTap,
|
onMessageTap: onMessageTap ?? this.onMessageTap,
|
||||||
|
|||||||
Reference in New Issue
Block a user