add carousel on tap

This commit is contained in:
Salvatore Giordano
2020-07-23 13:57:16 +02:00
parent 02a3642894
commit 808cc223a1
5 changed files with 130 additions and 70 deletions
+12 -7
View File
@@ -39,13 +39,18 @@ class ImageAttachment extends StatelessWidget {
Expanded(
child: GestureDetector(
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (_) {
return FullScreenImage(
url: attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl,
);
}));
Navigator.push(
context,
MaterialPageRoute(
builder: (_) {
return FullScreenImage(
url: attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl,
);
},
),
);
},
child: CachedNetworkImage(
height: size?.height,