Description
When adding the package to a Flutter project, the application fails to compile/run, throwing an error related to Matrix4 in the tada.dart file. As soon as the package is imported, this error appears in the VS Code debug console and breaks the Hot Reload functionality.
Steps to Reproduce
- Add
animate_do: ^5.1.0 to dependencies in pubspec.yaml.
- Import the package in any Dart file.
- Run the application or trigger a Hot Reload in VS Code.
Expected Behavior
The package should import correctly and Hot Reload should continue working without throwing Matrix4 method errors.
Actual Behavior / Error Output
/C:/Users/Eliu_/AppData/Local/Pub/Cache/hosted/pub.dev/animate_do-5.1.0/lib/src/animations/attention_seekers/tada.dart:80:11: Error: The method 'scaleByDouble' isn't defined for the class 'Matrix4'.
- 'Matrix4' is from 'package:vector_math/vector_math_64.dart' ('/C:/Users/Eliu_/AppData/Local/Pub/Cache/hosted/pub.dev/vector_math-2.1.4/lib/vector_math_64.dart').
Try correcting the name to the name of an existing method, or defining a method named 'scaleByDouble'.
..scaleByDouble(_scale.value, _scale.value, 1, 1)
^^^^^^^^^^^^^
Environment
Description
When adding the package to a Flutter project, the application fails to compile/run, throwing an error related to
Matrix4in thetada.dartfile. As soon as the package is imported, this error appears in the VS Code debug console and breaks the Hot Reload functionality.Steps to Reproduce
animate_do: ^5.1.0to dependencies inpubspec.yaml.Expected Behavior
The package should import correctly and Hot Reload should continue working without throwing Matrix4 method errors.
Actual Behavior / Error Output
Environment
Dart SDK version: ^3.8.1
Flutter version: 3.32.3
animate_do version: ^5.1.0
Editor: VS Code