Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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'. #72

Open
lopdam opened this issue Dec 27, 2024 · 6 comments

Comments

@lopdam
Copy link

lopdam commented Dec 27, 2024

../../../../.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);
@jassimalawwad
Copy link

i was just about to post it, Please fix this

@mulderpf
Copy link

mulderpf commented Jan 2, 2025

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

@thaliachitziou99
Copy link

thaliachitziou99 commented Jan 7, 2025

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

@IamSZaidH
Copy link

IamSZaidH commented Jan 23, 2025

../../../../.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.

@NidhinLalFoxena
Copy link

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

this worked for me

@gailansoran4
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants