buttery hero animations
buttery hero animation for remote assets
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user