Skip to content

Bug: The method 'scaleByDouble' isn't defined for the class 'Matrix4' in tada.dart #55

Description

@3liuhernandez

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

  1. Add animate_do: ^5.1.0 to dependencies in pubspec.yaml.
  2. Import the package in any Dart file.
  3. 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

  • Dart SDK version: ^3.8.1

  • Flutter version: 3.32.3

  • animate_do version: ^5.1.0

  • Editor: VS Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions