formatting

This commit is contained in:
mertalev
2025-08-10 14:19:36 -04:00
parent f78b151b64
commit 9bd298a160

View File

@@ -511,7 +511,7 @@ class _AssetViewerState extends ConsumerState<AssetViewer> {
final size = ctx.sizeData;
return PhotoViewGalleryPageOptions(
key: ValueKey(asset.heroTag),
// When the bottom sheet is shown and the asset is changed,
// When the bottom sheet is shown and the asset is changed,
// the cached image can have different position and scale than the normal one,
// causing incorrect animation calculations once the image provider yields a new image.
// This is a workaround to ensure the animation is handled correctly in this case.