FilledStacks / FilledStacks/flutter-tutorials

001 build error

Open
#177 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
4.8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

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 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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.