I am trying to setup a common local library to be used by multiple projects, and have tried [I think] everything to no avail.
OS: Windows 10
In the common test library project which I have in N:\proj\dart_libs\db2 I have the following pubspec.yaml:
name: db2
description: A starting point for Dart libraries or applications.
version: 1.0.0
environment:
sdk: '>=2.2.0 <3.0.0'
dev_dependencies:
pedantic: ^1.0.0
test: ^1.0.0
In another flutter project in: N:\proj\flutter\h001 I have the following inside pubspec.yaml:
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^0.1.2
http: ^0.12.0+2
mongo_dart: ^0.3.5
date_range_picker: ^1.0.6
time_machine: ^0.9.9
modal_progress_hud: ^0.1.3
db2:
path:/proj/dart_libs/db2: ^1.0.0
dev_dependencies:
flutter_test:
sdk: flutter
-----------------------------------
Note the path beneath db2: I have tried all kinds of combinations, with the actual dart file, with the drive letter, it always complain on that path, for one reason or other, depending for example, if I include a version constraint or not.
So, what please is the correct way of doing this?
Thank you!