Compiler message:
file:///C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/cached_network_image-0.5.1/lib/cached_network_image.dart:199:38: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
oldImageStream?.removeListener(_handleImageChanged);
^
file:///C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/cached_network_image-0.5.1/lib/cached_network_image.dart:200:32: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
_imageStream.addListener(_handleImageChanged);
^
file:///C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/cached_network_image-0.5.1/lib/cached_network_image.dart:210:34: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
_imageStream?.removeListener(_handleImageChanged);
^
file:///C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/cached_network_image-0.5.1/lib/cached_network_image.dart:465:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
'StringBuffer' is from 'dart:core'.
'Iterable' is from 'dart:core'.
'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
informationCollector: (StringBuffer information) {
^
file:///C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/photo_view-0.1.3/lib/photo_view.dart:237:24: Error: The argument type 'Null Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
stream.addListener(listener);
^
file:///C:/Users/Administrator/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/photo_view-0.1.3/lib/photo_view.dart:239:29: Error: The argument type 'Null Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///D:/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
stream.removeListener(listener);
^
Compiler failed on D:\flutterwork\Flutter_shop\lib\main.dart
What went wrong:
Execution failed for task ':app:compileflutterBuildDebugX86'.
Process 'command 'D:\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
file:///Users/xxx/flutter/.pub-cache/hosted/pub.flutter-io.cn/cached_network_image-0.5.1/lib/cached_network_image.dart:210:34: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/xxx/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/xxx/flutter/packages/flutter/lib/src/painting/image_stream.dart').