From 27618f44044cef639c4e001343425ad9b9388160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Tue, 2 Apr 2024 19:16:49 +0200 Subject: [PATCH] added min/ max-scale to fileViewer --- lib/widget/fileViewer.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/widget/fileViewer.dart b/lib/widget/fileViewer.dart index 72d0ea3..5907aa2 100644 --- a/lib/widget/fileViewer.dart +++ b/lib/widget/fileViewer.dart @@ -78,6 +78,8 @@ class _FileViewerState extends State { backgroundColor: Colors.white, body: PhotoView( controller: photoViewController, + maxScale: 3.0, + minScale: 0.1, imageProvider: Image.file(File(widget.path)).image, backgroundDecoration: BoxDecoration(color: Theme.of(context).colorScheme.surface), )