fix hero tag duplicated

This commit is contained in:
Salvatore Giordano
2020-05-16 12:29:00 +02:00
parent e8be4a2575
commit 890f729668
4 changed files with 9 additions and 8 deletions
+2 -3
View File
@@ -48,9 +48,8 @@ class GiphyAttachment extends StatelessWidget {
}));
},
child: Hero(
tag: attachment.imageUrl ??
attachment.assetUrl ??
attachment.thumbUrl,
tag:
'${message.id} - ${attachment.imageUrl ?? attachment.assetUrl ?? attachment.thumbUrl}',
child: CachedNetworkImage(
height: size?.height,
width: size?.width,