Showing this error 'Null Function(dynamic, dynamic)' can't be assigned to the parameter type 'ImageStreamListener'
imSanjaySoni opened this issue · comments
Sanjay Soni commented
Austine Mwanyalo commented
Hello @imSanjaySoni check that link below for a fix 👇🏽
iTikoz commented
This method has a new call, this should fix the problem:
_buildItem(context) {
String url = widget.model.urlToImage;
var image = Image.network(url).image;
image
.resolve(ImageConfiguration())
.addListener(ImageStreamListener((ImageInfo info, bool synchronousCall) {
colorAnimationController.forward();
}));
Apart from this, did you guys manage to get the project to run and build? for me I am getting exceptions and when I finally got it to build, it shows a blank screen.
iTikoz commented
@imSanjaySoni Have you been able to run the project successfully ?
Sanjay Soni commented
no, I didn't try it again. @iTikoz