graphx icon indicating copy to clipboard operation
graphx copied to clipboard

Dependency incompatibility with flutter_map

Open digitalentity opened this issue 2 years ago • 1 comments

As said in the title - it's not possible to use graphx and flutter_map in the same project due to dependency conflict:

Because graphx >=1.0.0-nullsafety.0 <1.0.1 depends on http ^0.13.1 and graphx <1.0.0-nullsafety.0 doesn't support null safety, graphx <1.0.1 requires http ^0.13.1.
And because graphx >=1.0.1 <1.0.4 depends on http ^0.13.3, graphx <1.0.4 requires http ^0.13.1.
And because graphx >=1.0.4 <1.0.5 depends on http ^0.13.4 and graphx >=1.0.5 depends on http ^0.13.5, every version of graphx requires http ^0.13.1.
Because no versions of flutter_map match >5.0.0 <6.0.0 and flutter_map 5.0.0 depends on http ^1.0.0, flutter_map ^5.0.0 requires http ^1.0.0.
Thus, flutter_map ^5.0.0 is incompatible with graphx.
So, because dartgcs depends on both flutter_map ^5.0.0 and graphx any, version solving failed.

digitalentity avatar Aug 01 '23 16:08 digitalentity

Did you try dependency_overrides?

roipeker avatar Aug 01 '23 17:08 roipeker

http dependency is not upgraded to the latest version. Could be removed from the core graphx package in the future, same as xml.

roipeker avatar Apr 15 '25 15:04 roipeker