magento-flutter
                                
                                 magento-flutter copied to clipboard
                                
                                    magento-flutter copied to clipboard
                            
                            
                            
                        Flutter Run issues
Compiler message: ../flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.5.1/lib/cached_network_image.dart:461: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:403:24: Context: This is the overridden method ('load'). ImageStreamCompleter load(T key, DecoderCallback decode); ^ ../flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.5.1/lib/cached_network_image.dart:199:38: 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' ('../flutter/packages/flutter/lib/src/painting/image_stream.dart').
- 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('../flutter/packages/flutter/lib/src/painting/image_stream.dart'). oldImageStream?.removeListener(_handleImageChanged); ^ ../flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.5.1/lib/cached_network_image.dart:200:32: 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' ('../flutter/packages/flutter/lib/src/painting/image_stream.dart').
- 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('../flutter/packages/flutter/lib/src/painting/image_stream.dart'). _imageStream.addListener(_handleImageChanged); ^ ../flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.5.1/lib/cached_network_image.dart:210:34: 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' ('../flutter/packages/flutter/lib/src/painting/image_stream.dart').
- 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('../flutter/packages/flutter/lib/src/painting/image_stream.dart'). _imageStream?.removeListener(_handleImageChanged); ^ ../flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.5.1/lib/cached_network_image.dart:465: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) { ^ Target kernel_snapshot failed: Exception: Errors during snapshot creation: null build failed.
FAILURE: Build failed with an exception.
- 
Where: Script 'D:\sastodeal\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780 
- 
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'. 
Process 'command 'D:\sastodeal\flutter\bin\flutter.bat'' finished with non-zero exit value 1
- 
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 
- 
Get more help at https://help.gradle.org 
BUILD FAILED in 9s
Change the version in pubspec.yaml to cached_network_image: ^2.0.0
hey @bimsina did you solve it? can you make a PR?
I actually was able to successfully build the code. But I had to create a new project and copy the code from the repository and had to change the plugin versions as:
http: ^0.12.0  sqflite:  path_provider:  rxdart: ^0.20.0 flutter_swiper: ^1.1.4  cached_network_image:
However I am getting an error during runtime. I am trying to solve the error.