Skip to content

Commit

Permalink
fix slider in hsv color picker
Browse files Browse the repository at this point in the history
  • Loading branch information
mchome committed Nov 16, 2021
1 parent 9389d23 commit 4a823ec
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

## [1.0.2]

- Fix the slider of hsv color picker in landscape mode.
- Check the color of input in block color picker.

## [1.0.1]

- Fix late value not initialized in MaterialPicker.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.1"
version: "1.0.2"
flutter_lints:
dependency: "direct dev"
description:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/block_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class _MultipleChoiceBlockPickerState extends State<MultipleChoiceBlockPicker> {
widget.availableColors,
(Color color, [bool? _, Function? __]) => widget.itemBuilder(
color,
_currentColors.contains(color),
_currentColors.contains(color) && widget.pickerColors.contains(color),
() => toggleColor(color),
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/colorpicker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class _ColorPickerState extends State<ColorPicker> {
),
Column(
children: <Widget>[
SizedBox(height: 40.0, width: 260.0, child: colorPickerSlider(TrackType.hue)),
SizedBox(height: 40.0, width: 260.0, child: sliderByPaletteType()),
if (widget.enableAlpha)
SizedBox(height: 40.0, width: 260.0, child: colorPickerSlider(TrackType.alpha)),
],
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_colorpicker
description: HSV(HSB)/HSL/RGB/Material color picker inspired by all the good design for your amazing flutter apps.
version: 1.0.1
version: 1.0.2
homepage: https://github.com/mchome/flutter_colorpicker

environment:
Expand Down

0 comments on commit 4a823ec

Please sign in to comment.