Skip to content

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

@Dionnie

Description

@Dionnie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions