added min/ max-scale to fileViewer
This commit is contained in:
1 parent
8bf5e5a06a
commit
27618f4404
1 file changed
+2
@@ -78,6 +78,8 @@ class _FileViewerState extends State<FileViewer> {
|
|||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
body: PhotoView(
|
body: PhotoView(
|
||||||
controller: photoViewController,
|
controller: photoViewController,
|
||||||
|
maxScale: 3.0,
|
||||||
|
minScale: 0.1,
|
||||||
imageProvider: Image.file(File(widget.path)).image,
|
imageProvider: Image.file(File(widget.path)).image,
|
||||||
backgroundDecoration: BoxDecoration(color: Theme.of(context).colorScheme.surface),
|
backgroundDecoration: BoxDecoration(color: Theme.of(context).colorScheme.surface),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user