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

Jerky/jittery behavior when not inside an AlertDialog #80

Open
QuinnFreedman opened this issue Jul 8, 2022 · 0 comments
Open

Jerky/jittery behavior when not inside an AlertDialog #80

QuinnFreedman opened this issue Jul 8, 2022 · 0 comments

Comments

@QuinnFreedman
Copy link

When I place any of the color picker widgets inside an AlertDialog, they work great. But, when I put them directly in the widget tree, they don't work well. The behavior of dragging around the color cursor becomes very jittery and will sometimes jump around.

The issue is that I am updating my state in the onColorChanged callback, which in turn causes the pickerColor to change. Many colors can be represented by a number of different picker states (for example, black could be any hue) so when the pickerColor is changed, the ColorPicker jumps to an arbitrary state that could produce that color.

How do I prevent this? Why doesn't this behavior occur inside an AlertDialog? Is there a different way I am supposed to handle state? or is this a bug?

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

No branches or pull requests

1 participant