Error with Flutter v3.27.0
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
did you find any solution ??
Version with fixes https://pub.dev/packages/timelines_plus
use timelines_plus package
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