Skip to content

Commit

Permalink
Release Version 1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rydmike committed Mar 3, 2021
1 parent 201b444 commit 364355b
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 25 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to the **FlexColorPicker** package will be documented in this file.

## [1.1.5] - March 3, 2021
* Bug fix `selectedPickerTypeColor`: When color was undefined, the thumb did not receive the same text color as the
default and only one before in version 1.1.3 and earlier, in dark-mode. This broke compatibility with past style
when using dark-mode. This fix restores the correct past style when the `selectedPickerTypeColor` is undefined.

## [1.1.4] - March 3, 2021
* New property `selectedPickerTypeColor`: Defines the color of the thumb on the slider that shows the selected picker.
* New property `colorCodePrefixStyle`: Defines the text style of the prefix for the color code.
Expand Down
40 changes: 20 additions & 20 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,56 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.5.0-nullsafety.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.0-nullsafety.1"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.1.0-nullsafety.3"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.2.0-nullsafety.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.1.0-nullsafety.1"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0"
version: "1.15.0-nullsafety.3"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.2.0-nullsafety.1"
flex_color_picker:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "1.1.4"
version: "1.1.5"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -73,21 +73,21 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.10-nullsafety.1"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.3.0-nullsafety.3"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0"
version: "1.8.0-nullsafety.1"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -99,55 +99,55 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
version: "1.8.0-nullsafety.2"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.10.0"
version: "1.10.0-nullsafety.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.0-nullsafety.1"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.1.0-nullsafety.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.2.0-nullsafety.1"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.19"
version: "0.2.19-nullsafety.2"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.3.0-nullsafety.3"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.0-nullsafety.3"
sdks:
dart: ">=2.12.0-0.0 <3.0.0"
dart: ">=2.10.0-110 <2.11.0"
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: color_picker_example
description: Simple example of how to use the FlexColorPicker package.
version: 1.1.4
version: 1.1.5

environment:
sdk: ">=2.7.0 <3.0.0"

dependencies:
flex_color_picker: ^1.1.4
flex_color_picker: ^1.1.5

flutter:
sdk: flutter
Expand Down
1 change: 1 addition & 0 deletions example/windows/flutter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ add_custom_command(
${FLUTTER_TOOL_ENVIRONMENT}
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
windows-x64 $<CONFIG>
VERBATIM
)
add_custom_target(flutter_assemble DEPENDS
"${FLUTTER_LIBRARY}"
Expand Down
6 changes: 4 additions & 2 deletions lib/src/color_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,11 @@ class _ColorPickerState extends State<ColorPicker> {
color: Color(0xFFFFFFFF),
darkColor: Color(0xFF636366),
);

// Define thumb onColor based on thumb color brightness.
final Color _thumbOnColor =
ThemeData.estimateBrightnessForColor(_thumbColor) == Brightness.light
final Color _thumbOnColor = widget.selectedPickerTypeColor == null
? null
: ThemeData.estimateBrightnessForColor(_thumbColor) == Brightness.light
? Colors.black
: Colors.white;

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: flex_color_picker
description: A customizable Flutter primary, accent and custom color picker. Includes an optional HSV wheel color picker.
version: 1.1.4
version: 1.1.5
homepage: https://github.com/rydmike/flex_color_picker

environment:
Expand Down

0 comments on commit 364355b

Please sign in to comment.