Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
878 stars 574 forks source link

[ENH]: Can we upgrade the web library to version v1.0.0 #1077

Closed hhcme closed 3 months ago

hhcme commented 3 months ago

2011724294253_ pic

Can we upgrade the web library to version v1.0.0

hhcme commented 3 months ago

Picture content: /Users/hhc/Desktop/flutter/flutter/bin/flutter --no-color pub upgrade Resolving dependencies... Because flutter_sound >=9.11.2 depends on flutter_sound_web 9.11.2 which depends on web ^0.5.0, flutter_sound >=9.11.2 requires web ^0.5.0. And because cached_network_image >=3.4.1 depends on cached_network_image_web ^1.3.1 which depends on web ^1.0.0, flutter_sound >=9.11.2 is incompatible with cached_network_image >=3.4.1. So, because drawing_ai depends on both cached_network_image ^3.4.1 and flutter_sound ^9.11.2, version solving failed.

You can try one of the following suggestions to make the pubspec resolve:

hhcme commented 3 months ago

It will also affect the upgrade of file_picker to the latest v8.1.2

Because flutter_sound >=9.11.2 depends on flutter_sound_web 9.11.2 which depends on web ^0.5.0, flutter_sound >=9.11.2 requires web ^0.5.0. And because file_picker >=8.1.0 depends on web ^1.0.0, flutter_sound >=9.11.2 is incompatible with file_picker >=8.1.0. So, because drawing_ai depends on both file_picker ^8.1.2 and flutter_sound ^9.11.2, version solving failed.

Larpoux commented 3 months ago

I am going to look if possible to depend on Web 1.0.0

i will try but not sure to success because Web 1.0.0 is very different than the previous versions.

hhcme commented 3 months ago

Thank you very much. You worked hard.

Larpoux commented 3 months ago

Flutter Sound 9.11.3 is released with dependancy on web: ^1.0.0. Unfortunately I had to deactivate the Recording to Stream on Web because the code was incompatible with web: ^1.0.0. Streams on Web needs some work. I am implementing this feature correctely on Flutter Sound version 10.0.0, but someone should work for that on 9.x.

9.11.3