overflow icon indicating copy to clipboard operation
overflow copied to clipboard

A bit of an error under Flutter 1.9 HotFix 2

Open jamiethain opened this issue 5 years ago • 2 comments

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?

jamiethain avatar Sep 27 '19 22:09 jamiethain

@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); }

frankxzx avatar Oct 21 '19 07:10 frankxzx

Thanks I will try that one.

jamiethain avatar Oct 21 '19 17:10 jamiethain