Skip to content

Workaround for dependency conflict with fl_chart: Error: The method 'translateByDouble' isn't defined for the class 'Matrix4' #82

@jenmerritt

Description

@jenmerritt

The following error may be experienced when using arcgis_maps_toolkit 200.8.0 with Flutter 3.32.x.

Error:

Error: The method 'translateByDouble' isn't defined for the class 'Matrix4'.

This is due to a conflict with the dependency fl_chart from 1.0.0 to 1.1.x.

Workaround for developers using Flutter 3.32.x

Add the following dependency override in your application's pubspec.yaml file to resolve the dependency conflict:

# pubspec.yaml (in your application)
dependencies:
  arcgis_maps: ^200.8.0
  arcgis_maps_toolkit: ^200.8.0  

dependency_overrides:
  fl_chart: 1.0.0

then run flutter pub upgrade

Developers using Flutter 3.35.x

This issue is resolved when updating to Flutter 3.35.x, and the above workaround is not required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions