bluefireteam / dashbook

Development tools to help you building UI on Flutter
MIT License
392 stars 43 forks source link

colorProperty is closing the page in Flutter Web #84

Closed emersonsiega closed 1 year ago

emersonsiega commented 2 years ago

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),
);

This is what's happening: Screen Recording 2022-06-18 at 01 45 15 PM

Dohmanlechx commented 1 year ago

Same issue here. I believe this line is the culprit. 😄

spydon commented 1 year ago

Anyone wants to send a PR with a fix? 😊

Dohmanlechx commented 1 year ago

Anyone wants to send a PR with a fix? 😊

https://github.com/bluefireteam/dashbook/pull/102

spydon commented 1 year ago

0.1.13 released with the fix!