-
Notifications
You must be signed in to change notification settings - Fork 225
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
Changes for color picker kit #4
base: master
Are you sure you want to change the base?
Conversation
…ColorPicker make more sence.
…er, also to make it more accurate to picker a color
@smileShirely feel free to review pr, thanks! |
access |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KevinZhang19870314 I'm glad to see your PR. But could you consider split the changes to multiple PRs?
And the new feature of color picker seems to be a small problem. The picking point has a incorrect offset.
final Matrix4 newMatrix = Matrix4.identity() | ||
..translate(newX, newY) | ||
..scale(_scale, _scale) | ||
..translate(-newX, -newY); | ||
_matrix = newMatrix; | ||
_searchPixel(dragDetails.globalPosition); | ||
_searchPixel(Offset(newX, newY)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be known issue in original code, not cause by the PR. @smileShirely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, you can see the ss below, I am using the original code and test it on one plus 8T.
The repro branch
fix: 1. fix dart warnings; 2. ColorSucker sounds weird, change it to ColorPicker make more sence.