π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: auto scaling after image is fully loaded after double tapping twice
ashilknf14b499ffebb
diff --git a/mobile/lib/ui/viewer/file/zoomable_image.dart b/mobile/lib/ui/viewer/file/zoomable_image.dartindex 1d9c9e2230..b354e21eb4 100644--- a/mobile/lib/ui/viewer/file/zoomable_image.dart+++ b/mobile/lib/ui/viewer/file/zoomable_image.dart@@ -54,6 +54,7 @@ class _ZoomableImageState extends State<ZoomableImage>ValueChanged<PhotoViewScaleState>? _scaleStateChangedCallback;bool _isZooming = false;PhotoViewController _photoViewController = PhotoViewController();+ late PhotoViewScaleStateController _scaleStateController;@overridevoid initState() {@@ -68,6 +69,7 @@ class _ZoomableImageState extends State<ZoomableImage>debugPrint("isZooming = $_isZooming, currentState $value");// _logger.info('is reakky zooming $_isZooming with state $value');};+ _scaleStateController = PhotoViewScaleStateController();super.initState();}@@ -92,6 +94,7 @@ class _ZoomableImageState extends State<ZoomableImage>child: PhotoView(imageProvider: _imageProvider,controller: _photoViewController,+ scaleStateController: _scaleStateController,scaleStateChangedCallback: _scaleStateChangedCallback,minScale: widget.shouldCover? PhotoViewComputedScale.covered@@ -281,6 +284,7 @@ class _ZoomableImageState extends State<ZoomableImage>initialPosition: newPosition,initialScale: scale,);+ _scaleStateController.scaleState = PhotoViewScaleState.zoomedIn;}final bool canUpdateMetadata = _photo.canEditMetaInfo;// forcefully get finalImageInfo is dimensions are not available in metadata