gif_ani icon indicating copy to clipboard operation
gif_ani copied to clipboard

Build error

Open jargalbat opened this issue 5 years ago • 3 comments

17:05:34.604 3 info flutter.tools Compiler message: 17:05:34.605 4 info flutter.tools /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/gif_ani-0.0.2/lib/gif_ani.dart:191:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'. 17:05:34.605 5 info flutter.tools 17:05:34.605 6 info flutter.tools - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/diagnostics.dart'). 17:05:34.605 7 info flutter.tools Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'. 17:05:34.605 8 info flutter.tools 17:05:34.605 9 info flutter.tools context: 'image failed to precache', 17:05:34.605 10 info flutter.tools ^ 17:05:34.605 11 info flutter.tools 17:05:34.606 12 info flutter.tools /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/gif_ani-0.0.2/lib/gif_ani.dart:199:32: Error: No named parameter with the name 'onError'. 17:05:34.606 13 info flutter.tools 17:05:34.606 14 info flutter.tools stream.addListener(listener, onError: errorListener); 17:05:34.606 15 info flutter.tools 17:05:34.606 16 info flutter.tools ^^^^^^^ 17:05:34.606 17 info flutter.tools 17:05:34.607 18 info flutter.tools /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/gif_ani-0.0.2/lib/gif_ani.dart:200:69: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'. 17:05:34.607 19 info flutter.tools - 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart'). 17:05:34.607 20 info flutter.tools - 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('/C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart'). 17:05:34.607 21 info flutter.tools Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'. 17:05:34.607 22 info flutter.tools completer.future.then((List<ImageInfo> _) { stream.removeListener(listener); }); 17:05:34.607 23 info flutter.tools ^

jargalbat avatar Oct 30 '19 09:10 jargalbat

Same here

Ahmadre avatar Dec 18 '19 22:12 Ahmadre

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...

Compiler message:
../../../../../.pub-cache/hosted/pub.dartlang.org/gif_ani-0.0.2/lib/gif_ani.dart:191:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('../../../../flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
        context: 'image failed to precache',
                 ^
../../../../../.pub-cache/hosted/pub.dartlang.org/gif_ani-0.0.2/lib/gif_ani.dart:199:32: Error: No named parameter with the name 'onError'.
  stream.addListener(listener, onError: errorListener);
                               ^^^^^^^
../../../../../.pub-cache/hosted/pub.dartlang.org/gif_ani-0.0.2/lib/gif_ani.dart:200:69: 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').
  completer.future.then((List<ImageInfo> _) { stream.removeListener(listener); });
                                                                    ^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
Failed to build bundle.
Error launching application on iPhone 11 Pro Max.
Exited (sigterm)

Ahmadre avatar Dec 18 '19 22:12 Ahmadre

I have quite same problem:

/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/gif_ani-0.0.2/lib/gif_ani.dart:191:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.

  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/Flutter/packages/flutter/lib/src/foundation/diagnostics.dart'). context: 'image failed to precache', ^ /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/gif_ani-0.0.2/lib/gif_ani.dart:199:32: Error: No named parameter with the name 'onError'. stream.addListener(listener, onError: errorListener); ^^^^^^^ /C:/Flutter/.pub-cache/hosted/pub.dartlang.org/gif_ani-0.0.2/lib/gif_ani.dart:200:69: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.

dhiyaaulauliyaa avatar Aug 26 '20 16:08 dhiyaaulauliyaa