xclud / web3dart

Ethereum library, written in Dart.
https://pub.dev/packages/web3dart
MIT License
180 stars 96 forks source link

Dependency conflicts with flutter_test #34

Open hamberluo opened 2 years ago

hamberluo commented 2 years ago

Because every version of flutter_test from sdk depends on async 2.8.2 and web3dart >=2.4.0 depends on async ^2.9.0

muhammadsaddamnur commented 2 years ago

i have same issue on flutter 2.x or flutter 3.x

tsvillain commented 2 years ago

While Owner of the project updates packages, you can override following dependencies to fix for now.

dependency_overrides:
  web3dart: ^2.4.0
  async: ^2.9.0
ekasetiawans commented 2 years ago

While Owner of the project updates packages, you can override following dependencies to fix for now.

dependency_overrides:
  web3dart: ^2.4.0
  async: ^2.9.0

Sorry, I think overriding dependency version is not the best solution for now especially for developer who build another package that depends on this package

ekasetiawans commented 2 years ago

I just tried to clone this repository and downgrade the async package version in the pubspec.yaml to 2.8.2 and there is no syntax error and it's mean we don't use any syntax from async 2.9.0. It's makes me confused, why we use async 2.9.0.