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

项目启动不起来 #25

Open
wujiegoodluck opened this issue May 29, 2019 · 6 comments
Open

项目启动不起来 #25

wujiegoodluck opened this issue May 29, 2019 · 6 comments

Comments

@wujiegoodluck
Copy link

Compiler message:
file:///Users/**/.pub-cache/hosted/pub.flutter-io.cn/palette_generator-0.1.1/lib/palette_generator.dart:188:29: 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/**/Documents/flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/wujie/Documents/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(imageListener);
@zhylclover
Copy link

same error

@CCY0122
Copy link

CCY0122 commented Jun 4, 2019

同问题 +1

@CCY0122
Copy link

CCY0122 commented Jun 4, 2019

同问题 +1

我解决了,我的flutter环境为channel在beta,版本为1.6.7。估计是版本太高了,于是我把它切到了1.6.0。上面的报错没了,不过CachedNetworkImage类里的load方法又报了个参数类型不对的错误,我把里面informationCollector参数注释掉了(从名字上看估计就是打印日志用的,注释掉应该没事)。然后可以编译了

@hanqingkai
Copy link

一样的问题,还有没有别的解决方案,楼上的不行啊

@353338110
Copy link

问一下。这个是基于什么flutter版。我用1.5.4 1.6.7 1.6.0版本都会报错

@kaina404
Copy link
Owner

@353338110 Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.13.6 17G2112, locale zh-Hans-CN)
这是我的

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

6 participants