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

_getImageSize function modified [ it was showing heavy error in new f… #12

Open
wants to merge 1 commit into
base: mlkit
Choose a base branch
from

Conversation

gods-mack
Copy link

…lutter(Dart) version ]

The code broke on line .addListener(..)
In the new version of Flutter[dart], it is showing an unpredictable Error. I solved it by using ImageStreamListener.
It is working for me fine. it is also working with all versions.

I solved creating an ImageListener function that does the same as my previous function with the listener variable. And then create an ImageStreamListener that receives this ImageListener as parameter. Note also that you can send as parameters onError and onChunk to the ImageStreamListener.

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

Successfully merging this pull request may close these issues.

1 participant