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

ReactiveColorPicker : Use integer instead of Color for value(s) #135

Open
Dionnie123 opened this issue Nov 16, 2023 · 0 comments
Open

ReactiveColorPicker : Use integer instead of Color for value(s) #135

Dionnie123 opened this issue Nov 16, 2023 · 0 comments

Comments

@Dionnie123
Copy link

Dionnie123 commented Nov 16, 2023

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.

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