Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [1.5.2]

* Fix `PaletteHuePicker` hue slider showing incorrect colors when dark or desaturated colors are selected in the palette.

## [1.5.1]

* Update example app.
Expand Down
16 changes: 8 additions & 8 deletions lib/src/pickers/palette_hue_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ class _PaletteHuePickerState extends State<PaletteHuePicker> {
void hueOnChange(double value) => widget.onChanged(
color.withHue(value),
);
List<Color> get hueColors => <Color>[
color.withHue(0.0).toColor(),
color.withHue(60.0).toColor(),
color.withHue(120.0).toColor(),
color.withHue(180.0).toColor(),
color.withHue(240.0).toColor(),
color.withHue(300.0).toColor(),
color.withHue(0.0).toColor()
final List<Color> hueColors = <Color>[
const Color.fromARGB(255, 255, 0, 0),
const Color.fromARGB(255, 255, 255, 0),
const Color.fromARGB(255, 0, 255, 0),
const Color.fromARGB(255, 0, 255, 255),
const Color.fromARGB(255, 0, 0, 255),
const Color.fromARGB(255, 255, 0, 255),
const Color.fromARGB(255, 255, 0, 0)
];

// Saturation Value
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_hsvcolor_picker
description: A HSV color picker inspired by chrome devtools and a material color picker for your flutter app.
version: 1.5.1
version: 1.5.2
homepage: https://github.com/fluttercandies/flutter_hsvcolor_picker

dependencies:
Expand Down
Loading