Skip to content

Commit

Permalink
use Object.hashAll instead of hashValues.
Browse files Browse the repository at this point in the history
  • Loading branch information
zmtzawqlp committed Dec 12, 2024
1 parent 2774576 commit 5b0f485
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0

* use Object.hashAll instead of hashValues.

## 0.1.0

* first release.
2 changes: 1 addition & 1 deletion lib/src/hittest.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class _BoxHitTestEntry extends BoxHitTestEntry {
: super(target, localPosition);

@override
int get hashCode => hashValues(target, localPosition);
int get hashCode => Object.hashAll(<Object?>[target, localPosition]);

@override
bool operator ==(Object other) {
Expand Down
7 changes: 3 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: extra_hittest_area
description: Manually add the extra hitTest area of a widget without changing its size or layout.
version: 0.1.0
version: 1.0.0
homepage: https://github.com/fluttercandies/extra_hittest_area

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=1.17.0"

sdk: ">=2.14.0 <4.0.0"

dependencies:
flutter:
sdk: flutter
Expand Down

0 comments on commit 5b0f485

Please sign in to comment.