added min/ max-scale to fileViewer

This commit is contained in:
Elias Müller 2024-04-02 19:16:49 +02:00
parent 8bf5e5a06a
commit 27618f4404

View File

@ -78,6 +78,8 @@ class _FileViewerState extends State<FileViewer> {
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),
)