feat: Now compatible with videos

This commit is contained in:
Deven Joshi
2020-11-26 18:32:46 +05:30
parent 146204ed3a
commit f409845818
9 changed files with 186 additions and 70 deletions
+3 -5
View File
@@ -47,11 +47,9 @@ class ImageAttachment extends StatelessWidget {
return StreamChannel(
channel: channel,
child: FullScreenImage(
urls: [
attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl
child: FullScreenMedia(
mediaAttachments: [
attachment,
],
userName: message.user.name,
sentAt: message.createdAt,