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

[bug] Direct compilation of errors under the latest version of flutter #176

Closed
elinxer opened this issue May 13, 2019 · 4 comments
Closed

Comments

@elinxer
Copy link

elinxer commented May 13, 2019

flutter version: v1.5.8
all is newest at this time, i just import and then compilation throw this error.

image

Compiler message:
file:///home/elinx/.pub-cache/hosted/pub.flutter-io.cn/cached_network_image-0.6.2/lib/src/cached_network_image_provider.dart:46:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///home/elinx/app/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer information) {
@SGZoom
Copy link

SGZoom commented May 15, 2019

v1.5.9-pre.258

cached_network_image-0.4.2/lib/cached_network_image.dart:464: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:///E:/softeware/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) {
    ^

@renefloor
Copy link
Contributor

That's exactly why I released version 0.8.0.

@elinxer
Copy link
Author

elinxer commented May 16, 2019

Thinks you are.

@SGZoom
Copy link

SGZoom commented May 16, 2019

Thank you :)

@expilu expilu mentioned this issue Jul 23, 2020
2 tasks
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