formatting
This commit is contained in:
@@ -511,7 +511,7 @@ class _AssetViewerState extends ConsumerState<AssetViewer> {
|
|||||||
final size = ctx.sizeData;
|
final size = ctx.sizeData;
|
||||||
return PhotoViewGalleryPageOptions(
|
return PhotoViewGalleryPageOptions(
|
||||||
key: ValueKey(asset.heroTag),
|
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,
|
// 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.
|
// 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.
|
// This is a workaround to ensure the animation is handled correctly in this case.
|
||||||
|
|||||||
Reference in New Issue
Block a user