kaparray / NewsDaily

News app in Flutter with BLOC pattern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Showing this error 'Null Function(dynamic, dynamic)' can't be assigned to the parameter type 'ImageStreamListener'

imSanjaySoni opened this issue · comments

Hello @imSanjaySoni check that link below for a fix 👇🏽

Baseflow/flutter_cached_network_image#197

@Mwanyalo thx for help :)

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.

@imSanjaySoni Have you been able to run the project successfully ?

no, I didn't try it again. @iTikoz

@Mwanyalo did you manage to get this project to work?