I'm transitioning from
Hero(
tag: imageModel.url,
child: CachedNetworkImage(
imageUrl: imageModel.url,
fit: BoxFit.cover,
),
)
to
final item = widget.galleryItems[index];
PhotoViewGalleryPageOptions(
imageProvider: CachedNetworkImageProvider(
item.url,
),
initialScale: PhotoViewComputedScale.contained,
minScale: PhotoViewComputedScale.contained,
maxScale: PhotoViewComputedScale.covered * 1.2,
heroAttributes: PhotoViewHeroAttributes(tag: item.url),
);
The first transition doesn't use hero animation. When I navigate back it starts working. All the subsequent transitions use hero animation.
The issue doesn't happen when I use plain NetworkImage/Image.network provider/widget
I'm transitioning from
to
The first transition doesn't use hero animation. When I navigate back it starts working. All the subsequent transitions use hero animation.
The issue doesn't happen when I use plain
NetworkImage/Image.networkprovider/widget