Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.5.1版本在最新的flutter-v1.7.8无法运行 #28

Closed
chavesgu opened this issue Jul 12, 2019 · 3 comments
Closed

v0.5.1版本在最新的flutter-v1.7.8无法运行 #28

chavesgu opened this issue Jul 12, 2019 · 3 comments

Comments

@chavesgu
Copy link

No description provided.

@chavesgu
Copy link
Author

Compiler message:
file:///Users/guchunwen/Documents/software/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.1/lib/src/extended_image.dart:733:59: 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/guchunwen/Documents/software/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/guchunwen/Documents/software/flutter/packages/flutter/lib/src/painting/image_stream.dart').
    Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
    if (_isListeningToStream) _imageStream.removeListener(_handleImageChanged);
    ^
    file:///Users/guchunwen/Documents/software/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.1/lib/src/extended_image.dart:744:53: Error: No named parameter with the name 'onError'.
    _imageStream.addListener(_handleImageChanged, onError: _loadFailed);
    ^^^^^^^
    file:///Users/guchunwen/Documents/software/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.1/lib/src/extended_image.dart:749:51: Error: No named parameter with the name 'onError'.
    _imageStream.addListener(_handleImageChanged, onError: _loadFailed);

@ecombharadwaj
Copy link

ecombharadwaj commented Jul 12, 2019

facing same issue

Compiler message:

file:///sdk/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.1/lib/src/extended_image.dart:733:59: 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:///sdk/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///sdk/flutter/packages/flutter/lib/src/painting/image_stream.dart').
    Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
    if (_isListeningToStream) _imageStream.removeListener(_handleImageChanged);
    ^
    file:///sdk/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.1/lib/src/extended_image.dart:744:53: Error: No named parameter with the name 'onError'.
    _imageStream.addListener(_handleImageChanged, onError: _loadFailed);
    ^^^^^^^
    file:///sdk/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.1/lib/src/extended_image.dart:749:51: Error: No named parameter with the name 'onError'.
    _imageStream.addListener(_handleImageChanged, onError: _loadFailed);
    ^^^^^^^
    file:///sdk/flutter/.pub-cache/hosted/pub.dartlang.org/extended_image-0.5.1/lib/src/extended_image.dart:755:33: 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:///sdk/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///sdk/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:///sdk/flutter/.pub-cache/hosted/pub.dartlang.org/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:///sdk/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///sdk/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:///sdk/flutter/.pub-cache/hosted/pub.dartlang.org/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:///sdk/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///sdk/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);

@zmtzawqlp
Copy link
Member

check #6

i push codes to pub later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants