Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error: The method 'hashValues' isn't defined for the class 'SlidableRatioNotification'. #518

Closed
tib753 opened this issue Jan 1, 2025 · 3 comments

Comments

@tib753
Copy link

tib753 commented Jan 1, 2025

when I run main.dart in chrome web in android studio this error occurs With the latest version of the android studio and flutter

`Launching lib\main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
/C:/Users/ABD%20ARAZZAK/AppData/Local/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' ('/C:/Users/ABD%20ARAZZAK/AppData/Local/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);
    ^^^^^^^^^^
    Failed to compile application.`
    2025-01-01_003146
@danilkharlan
Copy link

facing the same issue

@tib753
Copy link
Author

tib753 commented Jan 10, 2025 via email

@tib753
Copy link
Author

tib753 commented Jan 10, 2025

There was a difference in Flutter, the project used Flutter version 3.24.5 ,I just changed Flutter from 3.27.1 to 3.24.5

@letsar letsar closed this as completed Jan 23, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants