flutter_slidable icon indicating copy to clipboard operation
flutter_slidable copied to clipboard

Error in latest version flutter 3.24

Open mfebrihariyadi opened this issue 1 year ago • 4 comments

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' ('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);

mfebrihariyadi avatar Aug 20 '24 02:08 mfebrihariyadi

Solved Just upgrade gradle in Gradle wrapper distributionUrl=https://services.gradle.org/distributions/gradle-8.4-all.zip

mfebrihariyadi avatar Aug 20 '24 04:08 mfebrihariyadi

This looks like a duplicate of #488, and it doesn't make any sense that upgrading Gradle would fix it.

amake avatar Aug 24 '24 04:08 amake

../../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' ('../../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); ^^^^^^^^^^

gradle version distributionUrl=https://services.gradle.org/distributions/gradle-8.9-all.zip on Flutter Version

Flutter 3.27.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision 17025dd882 (2 weeks ago) • 2024-12-17 03:23:09 +0900 Engine • revision cb4b5fff73 Tools • Dart 3.6.0 • DevTools 2.40.2

codewithmashi avatar Jan 01 '25 02:01 codewithmashi

Same issue here

valterh4ck3r avatar Apr 09 '25 19:04 valterh4ck3r