-
Notifications
You must be signed in to change notification settings - Fork 548
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
Can gallery mode support 'detect image edge' but not unlock when contained? #41
Comments
That will be tricky due to |
A possible solution: Have a callback methods that fires each time the image panned and then returns ithe current state like so:
Then you simple can set the PageView's physics based on that, Correct me if i'm wrong. |
Great idea @dasmikko I will work on something like that soon (more callbacks). |
When I implemented this scheme, I added a callback method to check the touch margin. When I touched the margin, I made locked=false, and at the same time judged the initial direction of the sliding gesture. Locked=true when sliding in the opposite direction. But the process of implementation I have encountered a problem, when my scrollListener listens to the reverse slide, making locked=true will make the page card master, and there is no error message. @Shu-Ji @dasmikko @renancaraujo |
Can you add a WeChat friend to solve this problem? @Shu-Ji My wechat Id NA0421 |
@LebenNNA I've tried that before, but failed. It's |
The basic effect I made but encountered a problem with the PageView's framwork, I have already submitted the issue @Shu-Ji @renancaraujo |
Let user scroll to next page when PageView child is zooming (#41)
Released a tackle for this on 0.7.0. Thanks to @criswonder |
I find out that the gallery mode is something like twitter-mode: you can't change image if its scale is bigger than 1.0 or
_locked = scaleState != PhotoViewScaleState.contained
.So, is there any way to make _locked = false, while swipe reaches the image's edge(left or right), no matter whats scale the image has. And also swipe up or swipe down to close when reaches the image's edge(top or bottom).
What I'm saying is something like this(WeChat app):
But not use the _lock when contained happens:
The text was updated successfully, but these errors were encountered: