From c39391c3970caf8481c89a6a2026171beedbcd81 Mon Sep 17 00:00:00 2001 From: Jhonacode Date: Tue, 17 Dec 2024 00:23:35 +1300 Subject: [PATCH] Update withValue on Style --- CHANGELOG.md | 3 +++ README.md | 2 +- lib/core/multi_select.dart | 5 +++-- pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a8e4f9..915ccd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.5.4 +- Use withValues on style. + ## 1.5.3 - Upgrade dev lib. - upgrade sdk version. diff --git a/README.md b/README.md index 79d3992..7941ccd 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Add the dependency to your `pubspec.yaml` file: ```yaml dependencies: - multiselect_field: ^1.5.3 + multiselect_field: ^1.5.4 ``` Then, install the dependencies using: diff --git a/lib/core/multi_select.dart b/lib/core/multi_select.dart index 3958ee0..b49cc3d 100644 --- a/lib/core/multi_select.dart +++ b/lib/core/multi_select.dart @@ -447,13 +447,14 @@ class _MultiSelectFieldState extends State> /// Hovered only on web version if ((state.contains(WidgetState.hovered) && _isMobile)) { - return Colors.grey.withOpacity(0.1); + return Colors.grey + .withValues(alpha: (255.0 * 0.05)); } /// Color When is element selected if ((!isGroupingTitle && _isSelected(result))) { return Colors.lightBlueAccent - .withOpacity(0.1); + .withValues(alpha: (255.0 * 0.05)); } /// Default color, No selected, no hovered. diff --git a/pubspec.yaml b/pubspec.yaml index 6e2c999..f1a3eec 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: multiselect_field description: "A flexible dropdown field supporting single/multiple selection modes, styles, titles, etc" -version: 1.5.3 +version: 1.5.4 homepage: https://github.com/JhonaCodes/multiselect_field.git environment: