timelines icon indicating copy to clipboard operation
timelines copied to clipboard

Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. and Try correcting the name to the name of an existing method, or defining a method named 'hashList'.

Open lopdam opened this issue 1 year ago • 9 comments

../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/connector_theme.dart:86:12: Error: The method 'hashValues' isn't defined for the class 'ConnectorThemeData'.

  • 'ConnectorThemeData' is from 'package:timelines/src/connector_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/connector_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. return hashValues( ^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/indicator_theme.dart:80:23: Error: The method 'hashValues' isn't defined for the class 'IndicatorThemeData'.
  • 'IndicatorThemeData' is from 'package:timelines/src/indicator_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/indicator_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. int get hashCode => hashValues(color, size, position); ^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/timeline_theme.dart:346:12: Error: The method 'hashList' isn't defined for the class 'TimelineThemeData'.
  • 'TimelineThemeData' is from 'package:timelines/src/timeline_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/timeline_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashList'. return hashList(values);

lopdam avatar Dec 27 '24 07:12 lopdam

i was just about to post it, Please fix this

jassimalawwad avatar Dec 27 '24 08:12 jassimalawwad

I am also getting the same issue and it's blocking all my builds :(

mulderpf avatar Jan 02 '25 14:01 mulderpf

I had the same error in flutter 3.27.1 and I replaced this:

hashList -> Object.hashAll
hashValues -> Object.hash

and it worked for me

thaliachitziou99 avatar Jan 07 '25 12:01 thaliachitziou99

../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/connector_theme.dart:86:12: Error: The method 'hashValues' isn't defined for the class 'ConnectorThemeData'.

  • 'ConnectorThemeData' is from 'package:timelines/src/connector_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/connector_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. return hashValues( ^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/indicator_theme.dart:80:23: Error: The method 'hashValues' isn't defined for the class 'IndicatorThemeData'.
  • 'IndicatorThemeData' is from 'package:timelines/src/indicator_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/indicator_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashValues'. int get hashCode => hashValues(color, size, position); ^^^^^^^^^^ ../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/timeline_theme.dart:346:12: Error: The method 'hashList' isn't defined for the class 'TimelineThemeData'.
  • 'TimelineThemeData' is from 'package:timelines/src/timeline_theme.dart' ('../../../../.pub-cache/hosted/pub.dev/timelines-0.1.0/lib/src/timeline_theme.dart'). Try correcting the name to the name of an existing method, or defining a method named 'hashList'. return hashList(values);

To use this Dart 3-compatible version of the timelines package, follow these steps:

Open your pubspec.yaml file. Add the following dependency: yaml Copy Edit

dependencies:
  timelines:
    git:
      url: https://github.com/IamSZaidH/timelines
      ref: main  # Use the branch containing the Dart 3 compatibility fixes

Fetch the updated package by running:

flutter pub get

Now you can use the timelines package in your Flutter project as usual.

IamSZaidH avatar Jan 23 '25 09:01 IamSZaidH

dependencies: timelines: git: url: https://github.com/IamSZaidH/timelines ref: main # Use the branch containing the Dart 3 compatibility fixes

this worked for me

NidhinLalFoxena avatar Jan 31 '25 04:01 NidhinLalFoxena

my fork work and u can use it. url : https://github.com/gailansoran4/timelines.git

gailansoran4 avatar Jan 31 '25 20:01 gailansoran4

Or you can use https://pub.dev/packages/timelines_plus

pknuth avatar Feb 06 '25 12:02 pknuth

Can confirm that timelines_plus work with no issues for me

iker-nieto avatar Mar 24 '25 09:03 iker-nieto

I had the same error in flutter 3.27.1 and I replaced this:

hashList -> Object.hashAll
hashValues -> Object.hash

and it worked for me

Thank @thaliachitziou99 , its work for me. just replace code at :

  • timelines-0.1.0/lib/src/connector_theme.dart
  • timelines-0.1.0/lib/src/indicator_theme.dart
  • timelines-0.1.0/lib/src/timeline_theme.dart

bimapriaaditya avatar May 06 '25 06:05 bimapriaaditya