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
I use reactive_forms_generator and freezed for generating form models and I noticed that using Color type which is different from int,double,String introduces more complexity & errors by the time you want to save the color on database.
Luckily in dart, we can create Color using an integer e.g
I use reactive_forms_generator and freezed for generating form models and I noticed that using Color type which is different from int,double,String introduces more complexity & errors by the time you want to save the color on database.
Luckily in dart, we can create Color using an integer e.g
int foo = 0xFFFFA500;
Color(foo); // Result: Yellow
Color(foo).value //Result: 0xFFFFA500
ReactiveColorPicker should accept an integer instead of Color? I think?
Thank you.
The text was updated successfully, but these errors were encountered: