Closed CaiJingLong closed 1 year ago
../../.pub-cache/hosted/pub.dev/photo_manager-2.8.1/lib/src/internal/image_provider.dart:71:5: Error: Type 'DecoderCallback' not found. DecoderCallback decode, // ignore: deprecated_member_use
still issue with latest Version
Upgraded Flutter today to stable 3.16 and got the same error. When is photo_manager getting to stable 3.0.0?
Same issue here
@Ben1980 @xacaciax
Temporary fix.
// if you use
dependencies:
wechat_assets_picker: ^8.9.0-dev.1
dependency_overrides:
photo_manager: ^3.0.0-dev.2
I'm waiting for it to be updated to stable version :)
After updating with the temporary fix mentioned above, now I'm getting the error, "The method 'AssetEntityImage' isn't defined".
After updating with the temporary fix mentioned above, now I'm getting the error, "The method 'AssetEntityImage' isn't defined".
Read the doc to know how to migrate to 3.x of photo_manager.
Adding this to pubspec.yaml worked as temporary fix, ty @den0206
dependency_overrides:
photo_manager: ^3.0.0-dev.2
@Ben1980 @xacaciax
Temporary fix.
// if you use dependencies: wechat_assets_picker: ^8.9.0-dev.1 dependency_overrides: photo_manager: ^3.0.0-dev.2
I'm waiting for it to be updated to stable version :)
Hi, worked for also, thank you a lot)
Please publish this on stable channel, as we are not able to use latest stable version of flutter in our project. Above mention don't work because there is one more package on top of wechat_assets_picker that we are using.
Thank you
For those who get some kind of The method 'AssetEntityImage' isn't defined
or similar errors, don't forget to call flutter clean
For those who get some kind of
The method 'AssetEntityImage' isn't defined
or similar errors, don't forget to callflutter clean
Changed package to photo_manager: ^3.0.0-dev.5
Did flutter clean
But still getting The method 'AssetEntityImage' isn't defined
error
@ksb2311
AssetEntityImage is provided in the photo_manager_image_provider package.
For those who get some kind of
The method 'AssetEntityImage' isn't defined
or similar errors, don't forget to callflutter clean
Changed package to
photo_manager: ^3.0.0-dev.5
Did
flutter clean
But still getting
The method 'AssetEntityImage' isn't defined
error
I am so glad we have the -dev
version that we can pin as a dependency override, but given it was predicted in early November that the stable version would be published in "a few days", it would be great if this package could reach that point. Thanks for all the work that you do!
Sorry about not publishing a new stable version. We're still occupied by works in our life, which there are some TO-DO with the manager and the picker that might need to solve before we can push this. Glad everyone here knows how to use dev versions. Please allow us to take a bit longer to deal with it.
No worries, I'm glad about the plugin and looking forward whenever it's ready.
I solved the issue , you don't need to downgrade photo manager or your flutter SDK , you just need to update the imageprovider.dart file from package photo manager : 2.8.1 , And here is the updated code of imageprovider.dart file
The v3.0.0 of the plugin has been released. Please follow the breaking change doc to migrate usages.
Use version
3.0.0-dev.1
first.If you use the newest flutter stable version (3.16.0), you need use photo_manager version
3.0.0-dev.1
, and the stable version will be published a few days.This API has been officially removed by flutter. I plan to release version 3.0 in the future and remove the related API, and release an independent package to inherit flutter's ImageProvider. Until then, I recommended use stable of flutter SDK first.
If your log have next error:
If it is not any other reports next week, I will push the release version instead of the dev version.