New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I use the PhotoViewGalleryPageOptions.customChild , the scaleState doesn't work #335
Comments
There is a couple of problems with this usage.
|
Having read your reply, i just want to have the double tap behavior like yours.PhotoViewGalleryPageOptions is normal, but once i added the customChild, set the new scaleStateCycle, the double tap is triggered but the image is still. |
Yeah, the problem is how you did it. You don't need to add an internal GestureDetector to do that. |
I removed my GestureDetector, the only trigged event is the default doubleTap event. it did worked,but the image remains still... And I wonder why i double tapped once, the nextScaleState executed three times. |
Now I see something else. Your This is a problem since you cannot determine if half of the size of the image is bigger than half of the container smallest side or smaller than twice the size of the biggest size of the container). also, I have to ask your code without the gesture detector. As a resource, you can try to pass |
when i double tapped, the 'actual' has been printed three times. |
I did a preview demo, and reset the value of initialScale, it works now, and the image's scale changed too~ I will check my code, and find out what my fault is. extremely grateful~~ |
Unfortunately, I have an another question..if I set the initialValue is lower than container * 1, or bigger than it, it works now.But once I set it container * 1, it remains unchanged, cause doubleTap recovered it to originalSize. Then how can I zoom out when I first preview it :( |
It is really hard for me to understand to me what you are trying to achieve here. What is "container * 1"? |
Due to my limited English, I am sorry for what I described.Please let me re-describe my question: Once I set the initialScale is lower than but once I set the initialScale to I need to set the image fit the screen's width when I firstly previewed the image, it's necessary to set
|
这英文。。太绕了。我昨天下的源码,今天才刚刚看的。我猜是你的
|
这些状态都试了,不行的。 不过不用customChild,而直接用PhotoViewGalleryPageOptions,双击就是正常的,但是这个时候imageProvider类型太局限,无法拓展其他很多自定义功能 |
Since I dont speak chinese, is this issue still going on? We may change the name of things on #322 since |
Since we got no answer for a while, I am automatically closing this issue for the sake of organization. If there is any news on that, feel free to retake the discussion. |
I don't know if I use the controller correctly. but it still didn't work when i have tried many times? could you please pointed out where my fault is?
what i want to deal is to zoom the pic by doubleTap
The text was updated successfully, but these errors were encountered: