feat: Exposed customAttachmentBuilders through MessageListView
This commit is contained in:
@@ -130,6 +130,7 @@ class MessageListView extends StatefulWidget {
|
||||
this.emptyBuilder,
|
||||
this.messageListBuilder,
|
||||
this.errorWidgetBuilder,
|
||||
this.customAttachmentBuilders,
|
||||
}) : super(key: key);
|
||||
|
||||
/// Function used to build a custom message widget
|
||||
@@ -203,6 +204,9 @@ class MessageListView extends StatefulWidget {
|
||||
/// of a connection failure.
|
||||
final ErrorBuilder errorWidgetBuilder;
|
||||
|
||||
/// Attachment builders for the default message widget
|
||||
final Map<String, AttachmentBuilder> customAttachmentBuilders;
|
||||
|
||||
@override
|
||||
_MessageListViewState createState() => _MessageListViewState();
|
||||
}
|
||||
@@ -798,6 +802,7 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
break;
|
||||
}
|
||||
},
|
||||
customAttachmentBuilders: widget.customAttachmentBuilders,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -958,6 +963,7 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
break;
|
||||
}
|
||||
},
|
||||
customAttachmentBuilders: widget.customAttachmentBuilders,
|
||||
);
|
||||
|
||||
if (!message.isDeleted &&
|
||||
|
||||
Reference in New Issue
Block a user