Closed canastro closed 3 years ago
I've just encountered this lib (literally like a couple of hours ago) and I'm about to start playing with it in a small pet project.
I'm having some dependencies conflicts and in this PR I try to address them. Let me know if you have any concerns that I might have missed here.
Nice @canastro! How can I use your branch correct? In my pubspec.yaml I´ve tried:
flutter_midi: git: https://github.com/canastro/flutter_midi.git
but that only gives me:
Could not find a file named "pubspec.yaml"
Thanks
Theres an extra folder, try with:
git:
url: https://github.com/canastro/flutter_midi.git
path: flutter_midi/
Thank you, I tried what you suggested but got the same dependency problem as before:
Because every version of flutter_midi from git depends on path_provider ^1.6.0 and abc2 depends on path_provider ^2.0.1, flutter_midi from git is forbidden.
So, because abc2 depends on flutter_midi from git, version solving failed. pub get failed (1; So, because abc2 depends on flutter_midi from git, version solving failed.) exit code 1
I also tried
git:
url: https://github.com/canastro/flutter_midi.git
path: flutter_midi/
ref: nnbd
and that gives me
Error on line 17, column 11: Invalid description in the "flutter_midi" pubspec on the "flutter_midi_platform_interface" dependency: "../flutter_midi_platform_interface" is a relative path, but this isn't a local pubspec. ╷ 17 │ path: ../flutter_midi_platform_interface │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ pub get failed (65; ╵) exit code 65
Thanks
The last version you used should be the correct one (with the ref: nnbd
).
I changed the dependency of flutter_midi_platform_interface
to use the one thats available in this same repo, via local dep... That doesnt play out well when using as dep in other projects :\
Ah got it. I should be able to modify the dependency of flutter_midi_platform_interface
for my project then!
Thanks a lot mate
Hello, can someone point me to the correct yaml to use flutter_midi with Flutter 2? I have tried the suggested but I still got the error:
flutter_midi:
git:
url: https://github.com/canastro/flutter_midi.git
path: flutter_midi/
ref: nnbd
Error is:
Error on line 17, column 11: Invalid description in the "flutter_midi" pubspec on the "flutter_midi_platform_interface" dependency: "../flutter_midi_platform_interface" is a relative path, but this isn't a local pubspec.
╷ 17 │ path: ../flutter_midi_platform_interface
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵ pub get failed (65; ╵) exit code 65
I will work on merging this soon
I think we'll still need this one to be merged on dart-tonic to be fully nnbd.
Yeah for sure, I may need to create a fork.
Add support to non-nullable by default.
Related with https://github.com/rodydavis/flutter_midi/issues/26 and https://github.com/rodydavis/flutter_midi/issues/27