You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 thepickerColor
to change. Many colors can be represented by a number of different picker states (for example, black could be any hue) so when thepickerColor
is changed, theColorPicker
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?
The text was updated successfully, but these errors were encountered: