I want to show thumbnails of images sent from chat over SendBird Flutter native app code.
Here is the sample code , But we are able to find any option to implement this.
final preMessage =
channel.sendFileMessage(params, onCompleted: (msg, error) {
final index =
_messages.indexWhere((element) => element.requestId == msg.requestId);
if (index != -1) _messages.removeAt(index);
_messages = [msg, …_messages];
_messages.sort((a, b) => b.createdAt.compareTo(a.createdAt));
markAsReadDebounce();
log(‘Disposed Value== >> $isDisposed’);
if (!isDisposed) notifyListeners();
});
sendFileMessage has no any parameter for thumbnails.
Are you looking to pass in already generated thumbnail files, sizes or urls? I do see that it does not appear to be included in the fileMessageParams but just want to understand what you’re looking to pass to us.
Now i am able to set thumbnails size in onSendFileMessage() and getting the thumbnails in loadMessages() using this code :_messages[0].toJson()[‘thumbnails’]