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

Color picker type MaterialPicker visibility problem #32

Open
BoHellgren opened this issue Nov 26, 2020 · 1 comment
Open

Color picker type MaterialPicker visibility problem #32

BoHellgren opened this issue Nov 26, 2020 · 1 comment

Comments

@BoHellgren
Copy link

I am using FormBuilderColorPicker(colorPickerType: ColorPickerType.MaterialPicker).
This is a very nice picker, but it has a problem. Many users complain that they cannot see which color they have chosen. If you look closely, the selected color is surrounded by very faint lines in the same color. They are almost invisible. If the lines were black, there would be no problem to see what you have chosen.

@BoHellgren
Copy link
Author

I changed
D:/flutter_windows/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_colorpicker-0.3.4/lib/src/material_picker.dart line 211 from
border: _color == Theme.of(context).cardColor
to
border: _currentShading != _color
and line 213 from
: null,
to
: Border.all(color: Colors.black, width: 5.0),

This solves the problem, but it is a hack which I don't like. Could you please fix it in the next update.

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