mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Disable Hero animation as viewer size initially is 0 with partial files
This commit is contained in:
parent
5ac326b5c8
commit
50673be1f0
2 changed files with 17 additions and 23 deletions
|
@ -8,7 +8,6 @@ import 'package:nc_photos/api/api_util.dart' as api_util;
|
|||
import 'package:nc_photos/cache_manager_util.dart';
|
||||
import 'package:nc_photos/entity/file_descriptor.dart';
|
||||
import 'package:nc_photos/entity/local_file.dart';
|
||||
import 'package:nc_photos/flutter_util.dart' as flutter_util;
|
||||
import 'package:nc_photos/k.dart' as k;
|
||||
import 'package:nc_photos/mobile/android/content_uri_image_provider.dart';
|
||||
import 'package:nc_photos/widget/cached_network_image_mod.dart' as mod;
|
||||
|
@ -116,8 +115,6 @@ class _RemoteImageViewerState extends State<RemoteImageViewer> {
|
|||
onHeightChanged: widget.onHeightChanged,
|
||||
onZoomStarted: widget.onZoomStarted,
|
||||
onZoomEnded: widget.onZoomEnded,
|
||||
child: Hero(
|
||||
tag: flutter_util.getImageHeroTag(widget.file),
|
||||
child: mod.CachedNetworkImage(
|
||||
cacheManager: LargeImageCacheManager.inst,
|
||||
imageUrl: _getImageUrl(widget.account, widget.file),
|
||||
|
@ -136,7 +133,6 @@ class _RemoteImageViewerState extends State<RemoteImageViewer> {
|
|||
return child;
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
void _onItemLoaded() {
|
||||
|
|
|
@ -9,7 +9,6 @@ import 'package:nc_photos/app_localizations.dart';
|
|||
import 'package:nc_photos/cache_manager_util.dart';
|
||||
import 'package:nc_photos/entity/file_descriptor.dart';
|
||||
import 'package:nc_photos/entity/local_file.dart';
|
||||
import 'package:nc_photos/flutter_util.dart' as flutter_util;
|
||||
import 'package:nc_photos/k.dart' as k;
|
||||
import 'package:nc_photos/mobile/android/content_uri_image_provider.dart';
|
||||
import 'package:nc_photos/theme.dart';
|
||||
|
@ -66,7 +65,6 @@ class PhotoListImageItem extends PhotoListFileItem {
|
|||
previewUrl: previewUrl,
|
||||
isGif: file.fdMime == "image/gif",
|
||||
isFavorite: shouldShowFavoriteBadge && file.fdIsFavorite == true,
|
||||
heroKey: flutter_util.getImageHeroTag(file),
|
||||
);
|
||||
|
||||
final Account account;
|
||||
|
|
Loading…
Reference in a new issue