Error: The method 'hashValues' isn't defined for the class
It looks like latest master branch PR has dropped hashList support https://github.com/flutter/flutter/pull/151677. This is breaking for this repo with the following errors:
../../../.pub-cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart:88:23: Error: The method 'hashValues' isn't defined for the class 'SlidableRatioNotification'.
- 'SlidableRatioNotification' is from 'package:flutter_slidable/src/notifications_old.dart' ('../../../.pub-cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart').
Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
int get hashCode => hashValues(tag, ratio);
^^^^^^^^^^
Yes, this PR has been merged to fixes this issue. For the moment it's only available on the master branch.
I'am also getting the same issue, when would you release?
@letsar Thanks much. I left a comment in the PR, but can it be pushed to pub.dev so we can install it?
Waiting the update
Also ran into this, you can point to master until the new version is published:
flutter_slidable:
git:
url: https://github.com/letsar/flutter_slidable.git
ref: master
Thanks for your advice
git: url: https://github.com/letsar/flutter_slidable.git ref: master
Hi there. I am a flutter noob. Where to put those lines? As far as I understand .lock file is generated...
dev_dependencies: flutter_test: sdk: flutter flutter_slidable: git: url: https://github.com/letsar/flutter_slidable.git ref: master
Thank you good sir
When this fix will be on pub.dev?
Also ran into this, you can point to master until the new version is published:
flutter_slidable: git: url: https://github.com/letsar/flutter_slidable.git ref: master
Just updated to 3.27 and got this error, this solution works
Also ran into this, you can point to master until the new version is published:
flutter_slidable: git: url: https://github.com/letsar/flutter_slidable.git ref: masterJust updated to 3.27 and got this error, this solution works
I'm guessing you would have to remove it from being the direct dependency section right?
Sorry for the inconvenience. For some reason I didn't push the changes on pub when I merged this commit. This is done now in the 3.1.2