Skip to content

Commit

Permalink
Update withValue on Style
Browse files Browse the repository at this point in the history
  • Loading branch information
JhonaCodes committed Dec 16, 2024
1 parent 3a36dfa commit c39391c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.5.4
- Use withValues on style.

## 1.5.3
- Upgrade dev lib.
- upgrade sdk version.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 3 additions & 2 deletions lib/core/multi_select.dart
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,14 @@ class _MultiSelectFieldState<T> extends State<MultiSelectField<T>>
/// 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.
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: 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:
Expand Down

0 comments on commit c39391c

Please sign in to comment.