Skip to content

Commit 4a823ec

Browse files
committed
fix slider in hsv color picker
1 parent 9389d23 commit 4a823ec

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## [1.0.2]
4+
5+
- Fix the slider of hsv color picker in landscape mode.
6+
- Check the color of input in block color picker.
7+
38
## [1.0.1]
49

510
- Fix late value not initialized in MaterialPicker.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ packages:
2626
path: ".."
2727
relative: true
2828
source: path
29-
version: "1.0.1"
29+
version: "1.0.2"
3030
flutter_lints:
3131
dependency: "direct dev"
3232
description:

lib/src/block_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class _MultipleChoiceBlockPickerState extends State<MultipleChoiceBlockPicker> {
169169
widget.availableColors,
170170
(Color color, [bool? _, Function? __]) => widget.itemBuilder(
171171
color,
172-
_currentColors.contains(color),
172+
_currentColors.contains(color) && widget.pickerColors.contains(color),
173173
() => toggleColor(color),
174174
),
175175
);

lib/src/colorpicker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ class _ColorPickerState extends State<ColorPicker> {
381381
),
382382
Column(
383383
children: <Widget>[
384-
SizedBox(height: 40.0, width: 260.0, child: colorPickerSlider(TrackType.hue)),
384+
SizedBox(height: 40.0, width: 260.0, child: sliderByPaletteType()),
385385
if (widget.enableAlpha)
386386
SizedBox(height: 40.0, width: 260.0, child: colorPickerSlider(TrackType.alpha)),
387387
],

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_colorpicker
22
description: HSV(HSB)/HSL/RGB/Material color picker inspired by all the good design for your amazing flutter apps.
3-
version: 1.0.1
3+
version: 1.0.2
44
homepage: https://github.com/mchome/flutter_colorpicker
55

66
environment:

0 commit comments

Comments
 (0)