CachedNetworkImage throwing error after upgrading to latest Flutter Stable version

Posted by

Error:

../../AppData/Local/Pub/Cache/hosted/pub.dev/multi_image_picker2-5.0.02/lib/src/asset_thumb_provider.dart:30:36: Error: Type 'DecoderCallback' not found.
      AssetThumbImageProvider key, DecoderCallback decode) {
                                   ^^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/multi_image_picker2-5.0.02/lib/src/asset_thumb_provider.dart:30:36: Error: 'DecoderCallback' isn't a type.
      AssetThumbImageProvider key, DecoderCallback decode) {
                                   ^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception


FAILURE: Build failed with an exception.

Solution:

Reduce the package multi_image_picker2’s version: You can attempt upgrading to a prior version where DecoderCallback is recognised, as the problem is occurring in version 5.0.02. Revise the file pubspec.yaml.

dependencies:
  multi_image_picker2: ^5.0.0

Then, run flutter pub get to fetch the specified version of the package.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x