Skip to content
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

Fix issue with gallery in Android for flutter version 1.20 and up #304 #349

Closed
wants to merge 1 commit into from
Closed

Conversation

edocabhi
Copy link

@edocabhi edocabhi commented Oct 20, 2020

I had the issue of an unresponsive gallery in Android 11 after updating flutter to 1.20. I was unable to slide between images with left or right swipe actions. On investigating more and applying the changes submitted in this PR I was able to have it working again. This PR should also fix the issue reported in #304

Copy link
Member

@renancaraujo renancaraujo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you are basically undoing #326 that fixed the problem according to lots of people (me included).
Any explanations on that?

Comment on lines +32 to 43
final hitCornersX = this.hitCornersX();

if (hitCornersX.hasHitAny && move != Offset.zero) {
if (hitCornersX.hasHitBoth) {
return false;
}
if (hitCornersX.hasHitMax) {
return move.dx < 0;
}
return move.dx > 0;
}
return true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why bring this code back? This is the root of the problem on double taps. If the offset is zero in two axis it will return true anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants