Add hero animation to the remote folder gallery

This commit is contained in:
Vishnu Mohandas 2020-07-14 03:04:42 +05:30
parent 2d14356792
commit e7a1e93e90

View file

@ -100,7 +100,9 @@ class _RemoteFolderGalleryWidgetState extends State<RemoteFolderGalleryWidget> {
child: folder.thumbnailPhoto ==
null // When the user has shared a folder without photos
? Icon(Icons.error)
: ThumbnailWidget(folder.thumbnailPhoto),
: Hero(
tag: "remote_folder" + folder.thumbnailPhoto.tag(),
child: ThumbnailWidget(folder.thumbnailPhoto)),
height: 150,
width: 150,
),