Skip to content

Commit

Permalink
FIX: Wheel jumps to BW or Custom iBW colors if at edge and oapcity != 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rydmike committed May 14, 2024
1 parent a81aa0e commit 656db0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ The ColorPicker contains no breaking changes, but underlying Flutter does and th

* Added property `mainAxisSize` to `ColorPicker` and `showColorPickerDialog`, it controls the vertical axis size of the picker's column layout. Defaults to `MainAxisSize.max` as before, like `Columns` do by default. The property was added to enable setting the dialog to use `MainAxisSize.min` if needed.

**FIX**

* Fix wheel picker jumping to BW or custom picker under certain conditions.
* When the wheel picker's opacity value is not 100, moving the color picker cursor to the white corner or bottom black edge of the color box triggers a jump. It auto-selects BW or a custom picker containing black or white values. This is now fixed. The picker cursor will stay in the wheel picker, and the color box will not jump to BW or custom picker when the cursor is moved to the white corner or bottom black edge of the color box.

## 3.4.1

**Mar 16, 2024**
Expand All @@ -25,7 +30,7 @@ The ColorPicker contains no breaking changes, but underlying Flutter does and th

Package

- Fixed [#81](https://github.com/rydmike/flex_color_picker/issues/81) The property `tonalSubheading` in the convenience dialog function `showColorPickerDialog` was never passed along to the `ColorPicker` used to construct the dialog, causing the tonal sub heading to never show up in the resulting dialog.
- Fixed [#81](https://github.com/rydmike/flex_color_picker/issues/81) The property `tonalSubheading` in the convenience dialog function `showColorPickerDialog` was never passed along to the `ColorPicker` used to construct the dialog, causing the tonal subheading to never show up in the resulting dialog.


**New**
Expand Down
1 change: 1 addition & 0 deletions lib/src/color_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1947,6 +1947,7 @@ class _ColorPickerState extends State<ColorPicker> {
},
onChanged: (Color color) {
setState(() {
_fromInternal = true;
_tappedColor = color;
_selectedColor = color;
_wheelShouldUpdate = false;
Expand Down

0 comments on commit 656db0b

Please sign in to comment.