AlexanderArendar / overflow

27 stars 21 forks source link

A bit of an error under Flutter 1.9 HotFix 2 #1

Open jamiethain opened 4 years ago

jamiethain commented 4 years ago

Greetings,

I think this is a great foundation, I have the same problem scroll around a picture and touch it and get a description.

I get this error, I downloaded it, and just opened it in VSCode, and pressed Debug on a MacOS Xcode 10.1 and other flutter apps working today.

{
    "resource": "/Users/user/Documents/GitHub/overflow/lib/main.dart",
    "owner": "dart",
    "code": "argument_type_not_assignable",
    "severity": 8,
    "message": "The argument type 'Null Function(dynamic, dynamic)' can't be assigned to the parameter type 'ImageStreamListener'.",
    "source": "dart",
    "startLineNumber": 73,
    "startColumn": 24,
    "endLineNumber": 73,
    "endColumn": 153,
    "tags": []
}

I would like to use it in a production app...

Thoughts?

frankxzx commented 4 years ago

@jamiethain

void _resolveImageProvider() { ImageStream stream = imageProvider.resolve(createLocalImageConfiguration(context)); var listener = ((info, ) { _image = info.image; _resolved = true; _updateActualImageDimensions(); setState(() {}); }); var stearmListener = ImageStreamListener(listener); stream.addListener(stearmListener); }

jamiethain commented 4 years ago

Thanks I will try that one.