feat: Added new image detail screen

This commit is contained in:
Deven Joshi
2020-11-12 17:04:01 +05:30
parent 264b11362e
commit 3ad6a25a82
6 changed files with 345 additions and 49 deletions
+8 -4
View File
@@ -67,9 +67,11 @@ class GiphyAttachment extends StatelessWidget {
Navigator.push(context,
MaterialPageRoute(builder: (_) {
return FullScreenImage(
url: attachment.imageUrl ??
urls: [attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl,
attachment.thumbUrl],
userName: message.user.name,
sentAt: message.createdAt,
);
}));
},
@@ -299,9 +301,11 @@ class GiphyAttachment extends StatelessWidget {
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (_) {
return FullScreenImage(
url: attachment.imageUrl ??
urls: [attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl,
attachment.thumbUrl],
userName: message.user.name,
sentAt: message.createdAt,
);
}));
},