- I am using Photoview library in my Android app to enable image zoom-in functionality.
- But I want to disable image zoom out. Is there a way to do it?
Asked
Active
Viewed 710 times
4

Sumit Shukla
- 4,116
- 5
- 38
- 57
1 Answers
3
there is no way to disable this functionality but all you can do is use "minScale" functionality as i used in my code below is the example
PhotoView(
minScale: PhotoViewComputedScale.contained * 1.0,
imageProvider: const NetworkImage(
"https://images.pexels.com/photos/1708936/pexels-photo-1708936.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940",
),
);

Vismay Viradiya
- 81
- 5
-
1Where to add this code @Vismay – Nils May 26 '22 at 10:40
-
PhotoView is a WIdget you can add Photoview in column, row, container or sizedbox – Vismay Viradiya Jun 22 '22 at 09:33