timelines icon indicating copy to clipboard operation
timelines copied to clipboard

Error with Flutter v3.27.0

Open kydemy-fran opened this issue 1 year ago • 4 comments

After updating to the new Flutter version v3.27.0 the package throws an error when compiling the project:

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

Environment: Flutter 3.27.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 8495dee1fd (2 days ago) • 2024-12-10 14:23:39 -0800 Engine • revision 83bacfc525 Tools • Dart 3.6.0 • DevTools 2.40.2 OS: Fedora Linux 41

kydemy-fran avatar Dec 12 '24 11:12 kydemy-fran

did you find any solution ??

sunil-singh-chaudhary avatar Dec 12 '24 11:12 sunil-singh-chaudhary

Version with fixes https://pub.dev/packages/timelines_plus

Gorniv avatar Dec 12 '24 13:12 Gorniv

use timelines_plus package

Rifay-Nectar avatar Dec 18 '24 07:12 Rifay-Nectar

did you find any solution ??

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.

like this

Image

IamSZaidH avatar Feb 02 '25 16:02 IamSZaidH