Open 3g015st opened 1 year ago
The actual class is in palette.dart
named ColorIndicator
.
There is also a flag in colorpicker.dart
named this.showIndicator
and it is set to true
.
Setting the above flag to false
however does not do anything.
Commenting out the whole GestureDetector
block from the picker "version" you are currently using does the trick however...
for example, the comented lines should be (located in colorpicker.dart
):
GestureDetector(
onTap: () => setState(() {
if (widget.onHistoryChanged != null && !colorHistory.contains(currentHsvColor.toColor())) {
colorHistory.add(currentHsvColor.toColor());
widget.onHistoryChanged!(colorHistory);
}
}),
child: ColorIndicator(currentHsvColor),
),
This is quite annoying, if the flag could be fixed to do what it is supposed to it would be much appreciated.
PS. if you are to fiddle with the code, make sure to copy the files that flutter downloaded to your source directory and import these to use in your code instead...
The title and photo speak for themselves. Thanks to whoever answers this 😄