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
+2 -4
View File
@@ -115,10 +115,8 @@ class ImageGroup extends StatelessWidget {
MaterialPageRoute(
builder: (context) => StreamChannel(
channel: channel,
child: FullScreenImage(
urls: images
.map((e) => e.imageUrl ?? e.thumbUrl ?? e.assetUrl)
.toList(),
child: FullScreenMedia(
mediaAttachments: images,
startIndex: index,
userName: message.user.name,
sentAt: message.createdAt,