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
+6 -10
View File
@@ -67,11 +67,9 @@ class GiphyAttachment 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,
@@ -295,11 +293,9 @@ class GiphyAttachment 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,