letsar / flutter_slidable

A Flutter implementation of slidable list item with directional slide actions.
MIT License
2.69k stars 576 forks source link

Error: The method 'hashValues' isn't defined for the class #488

Open mark8044 opened 2 months ago

mark8044 commented 2 months ago

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);
                      ^^^^^^^^^^
letsar commented 1 month ago

Yes, this PR has been merged to fixes this issue. For the moment it's only available on the master branch.

Yogesh-Dubey-Ayesavi commented 1 month ago

I'am also getting the same issue, when would you release?

mark8044 commented 1 month ago

@letsar Thanks much. I left a comment in the PR, but can it be pushed to pub.dev so we can install it?

PradeepChoran commented 1 month ago

Waiting the update

igorilin13 commented 1 month ago

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
PradeepChoran commented 1 month ago

Thanks for your advice

Shakenbeer commented 3 weeks ago
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...

PradeepChoran commented 2 weeks ago

dev_dependencies: flutter_test: sdk: flutter flutter_slidable: git: url: https://github.com/letsar/flutter_slidable.git ref: master

Shakenbeer commented 2 weeks ago

Thank you good sir