We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The package works wonderfully when using NetworkImage provider
final imageProvider = NetworkImage(imageUrl); final String blurHash = await BlurhashFFI.encode(imageProvider);
However, when trying to use a CachedNetworkImageProvider:
CachedNetworkImageProvider
final imageProvider = CachedNetworkImageProvider(imageUrl); final String blurHash = await BlurhashFFI.encode(imageProvider);
Then we get the following error:
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Future already completed #0 _AsyncCompleter.complete (dart:async/future_impl.dart:43:31) #1 BlurhashFFI._getImageInfoFromImageProvider.<anonymous closure> (package:blurhash_ffi/blurhash.dart:195:17) <asynchronous suspension>
Despite the error, a blur hash string is still returned....
The text was updated successfully, but these errors were encountered:
Hey @mark8044, this is a known issue caused by cached_network_image package, please follow #6 for updates
cached_network_image
Sorry, something went wrong.
Bad state: Future already completed when using CachedNetworkImageProv…
f5e1fd5
…ider Fixes #11
@dhikshith12 Ah ok I see, I will follow there, thank you
Update version to 1.2.1 and fix issue #11
e51e43f
drxddy
Successfully merging a pull request may close this issue.
The package works wonderfully when using NetworkImage provider
However, when trying to use a
CachedNetworkImageProvider
:Then we get the following error:
Despite the error, a blur hash string is still returned....
The text was updated successfully, but these errors were encountered: