AlexanderArendar / overflow

27 stars 21 forks source link

ImageStream addListener parameters type mismatch #4

Open sasikumar-ad opened 3 years ago

sasikumar-ad commented 3 years ago

Hi,

I was searching for this solution for over a day and stumbled upon your medium blog. But when I cloned your repo and tried to run the app, I got "The argument type 'Null Function(dynamic, dynamic)' can't be assigned to the parameter type 'ImageStreamListener'." error at Line 73 in Line 73 in main.dart file.

I am new to flutter and I understood that the type of the parameter passed doesn't match with what is expected. Any help would be much appreciated.

Thanks

KokFong97 commented 3 years ago

imageProvider.resolve(createLocalImageConfiguration(context)); stream.addListener(ImageStreamListener((ImageInfo info, bool ) { _image = info.image; _resolved = true; _updateActualImageDimensions(); setState(() {}); })); }

i did this and it worked