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

001 build error #177

Open
hdeppert opened this issue Mar 29, 2023 · 1 comment
Open

001 build error #177

hdeppert opened this issue Mar 29, 2023 · 1 comment

Comments

@hdeppert
Copy link

Hi @FilledStacks ,

first I had to rename the 'final' subfolder to some other name, otherwise flutter create . would not do anything. Then, when trying to compile the folder of the 001 example, the following error is shown:

../../../../.pub-cache/hosted/pub.dev/cached_network_image-0.7.0/lib/src/cached_network_image_provider.dart:42:24: Error: The method
'CachedNetworkImageProvider.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
  ImageStreamCompleter load(CachedNetworkImageProvider key) {
                       ^
../../../flutter/packages/flutter/lib/src/painting/image_provider.dart:600:24: Context: This is the overridden method ('load').
  ImageStreamCompleter load(T key, DecoderCallback decode) {
                       ^
../../../../.pub-cache/hosted/pub.dev/cached_network_image-0.7.0/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'
 ('../../../flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
        informationCollector: (StringBuffer information) {

Probably this is an incompatibility with newer versions of flutter or dependencies? How can I solve it?

@FilledStacks
Copy link
Owner

It looks like incompatibilities. I would say you should probably update the packages that are out of date.

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

2 participants