需要帮助扑扑编译

时间:2019-06-22 12:37:33

标签: flutter dart

Flutter编译错误

编译器消息:

 file:///Users/kismath77/Documents/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/printing-2.0.2/lib/src/asset_utils.dart:49:27:
    Error: The argument type 'Future<void> Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
     - 'Future' is from 'dart:async'.
     - 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart'

 ('file:///Users/kismath77/Documents/Flutter/flutter/packages/flutter/lib/src/painting/image_stream.dart').
 - 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart'



('file:///Users/kismath77/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(listener);
                          ^
file:///Users/kismath77/Documents/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/printing-2.0.2/lib/src/asset_utils.dart:64:32:
Error: No named parameter with the name 'onError'.
  stream.addListener(listener, onError: errorListener);
                               ^^^^^^^
Compiler failed on /Users/kismath77/Documents/Flutter/vsales/lib/main.dart
Error launching application on iPad Pro (9.7-inch).

您好,我对开发和开发发票项目非常陌生,因此,我使用pdf creater进行报告,并且对我非常有用。我已经升级了dart版本,然后收到此错误

pubspec.yaml   印刷:^ 2.0.2   pdf:^ 1.3.8

谢谢

0 个答案:

没有答案
相关问题