Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in the cached_network_image library #14

Closed
azandrew-sidoine opened this issue Jan 24, 2018 · 5 comments
Closed

Bug in the cached_network_image library #14

azandrew-sidoine opened this issue Jan 24, 2018 · 5 comments

Comments

@azandrew-sidoine
Copy link

azandrew-sidoine commented Jan 24, 2018

Malformed Type line 38 : cannot resolve class "ImgageStreamCompleter" from CachedNetworkImageProvider
ImageStreamCompleter load(CachedNetworkImageProvider key)
on Android 7.0

@renefloor
Copy link
Collaborator

Did you copy "ImgageStreamCompleter" wrongly or did it really state that? (See the extra g.)
Is your problem only on Android 7.0 or on every device, this should not be OS specific.

Could you add the flutter doctor log?

@azandrew-sidoine
Copy link
Author

azandrew-sidoine commented Jan 24, 2018 via email

@azandrew-sidoine
Copy link
Author

azandrew-sidoine commented Jan 24, 2018 via email

@renefloor
Copy link
Collaborator

The error happen on my Android 7.0 phone when the application was running

I was asking whether it happens only on Android 7.0 or whether it is also broken for you on other devices, for example the iOS simulator.

There is no problem with the flutter doctor

I was mainly asking for flutter doctor as that also gives for example the version of Flutter you are using to build it. Maybe it is broken in a specific version of the Flutter SDK.

I try using the codes of your library directly in my app, change
ImageStreamCompleter class to MultiFrameImageStreamCompleter and the app
the image is load successfully now.

The networkimage also uses the ImageStreamCompleter, does this one work for you?

  @override
  ImageStreamCompleter load(NetworkImage key) {
    return new MultiFrameImageStreamCompleter(
      codec: _loadAsync(key),
      scale: key.scale,
      informationCollector: (StringBuffer information) {
        information.writeln('Image provider: $this');
        information.write('Image key: $key');
      }
    );
  }

By the way do the plugin need Write permission to be added to
AndroidManifest.xml file?

Should not be needed. It is not using external storage, for app storage you don't need a permission.

@azandrew-sidoine
Copy link
Author

Found out that the issue was related to the flutter version was too old... Working now after updating. Thanks. Closing the issue

@expilu expilu mentioned this issue Jul 23, 2020
2 tasks
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants