Pyozer / flutter_material_color_picker

Material color picker, you can customize colors. Selection in two step, first main color and after shades.
https://pub.dartlang.org/packages/flutter_material_color_picker
MIT License
75 stars 38 forks source link

onlyShadeSelection option #10

Closed MSchmack closed 5 years ago

MSchmack commented 5 years ago

When the onlyShadeSelection option is set to true it will only emit changes coming from the shade selection.

This is nessecary when changing the selectedColor of the colorpicker depending on what it emits. Without the change the mainColor would be selected, emitted through onColorChange and onMainColorChange. The colors couldn't be differentiated and had to be set, thus skipping / ignoring the shade selection that also offers the main color.

Might be wise to make it the default for onColorChange and keep emitting changes of MainColor to onMainColorChange