Skip to content

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

Open
gods-mack wants to merge 1 commit intoiampawan:mlkitfrom
gods-mack:patch-1
Open

_getImageSize function modified [ it was showing heavy error in new f…#12
gods-mack wants to merge 1 commit intoiampawan:mlkitfrom
gods-mack:patch-1

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