buttery hero animations

buttery hero animation for remote assets
This commit is contained in:
mertalev
2025-08-01 18:35:40 -04:00
parent be0fe36210
commit 98c1f3c476
6 changed files with 53 additions and 46 deletions
@@ -472,12 +472,7 @@ class _AssetViewerState extends ConsumerState<AssetViewer> {
if (stackChildren != null && stackChildren.isNotEmpty) {
asset = stackChildren.elementAt(ref.read(assetViewerProvider.select((s) => s.stackIndex)));
}
return Container(
width: double.infinity,
height: double.infinity,
color: backgroundColor,
child: Thumbnail.fromBaseAsset(asset: asset, fit: BoxFit.contain),
);
return Thumbnail.fromBaseAsset(asset: asset, fit: BoxFit.contain);
}
void _onScaleStateChanged(PhotoViewScaleState scaleState) {