added min/ max-scale to fileViewer
This commit is contained in:
parent
8bf5e5a06a
commit
27618f4404
@ -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),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user