how to specify separate versions of same dependency on different packages flutter pub code example
Example: pubspec.yaml local package
dependencies:
your_package:
path: ../your_package/
dependencies:
your_package:
path: ../your_package/