I'm trying to use colorProperty to let users change some widgets color.
The color picker is opened correctly with default color, but when I try to change the color and confirm in "Got it" button, the background page is closed instead of color picker modal.
This is how I'm using the colorProperty:
final bool customize = dc.boolProperty('Customize colors', false);
final Color backgroundColor = dc.colorProperty(
'backgroundColor',
Colors.grey,
visibilityControlProperty: ControlProperty('Customize colors', true),
);
I'm trying to use
colorProperty
to let users change some widgets color. The color picker is opened correctly with default color, but when I try to change the color and confirm in "Got it" button, the background page is closed instead of color picker modal.This is how I'm using the
colorProperty
:This is what's happening: