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

I get this exception when adding the dependency #9

Open
beautybird opened this issue Dec 4, 2020 · 0 comments
Open

I get this exception when adding the dependency #9

beautybird opened this issue Dec 4, 2020 · 0 comments

Comments

@beautybird
Copy link

After adding the dependency I started getting this exception..when remove dependency the exception goes off .

  Running Gradle task 'assembleDebug'...
  ../../.pub-cache/hosted/pub.dartlang.org/photo_view-0.1.3/lib/photo_view.dart:237:24: Error: The argument type 'Null 
  Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
  - 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' 
 ('../../Android/Sdk/flutter/packages/flutter/lib/src/painting/image_stream.dart').
 - 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' 
 ('../../Android/Sdk/flutter/packages/flutter/lib/src/painting/image_stream.dart').
    stream.addListener(listener);
                   ^
 ../../.pub-cache/hosted/pub.dartlang.org/photo_view-0.1.3/lib/photo_view.dart:239:29: Error: The argument type 'Null 
 Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
- 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' 
('../../Android/Sdk/flutter/packages/flutter/lib/src/painting/image_stream.dart').
 - 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' 
('../../Android/Sdk/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  stream.removeListener(listener);

I'm running flutter :
Flutter (Channel stable, 1.22.4, on Linux, locale en_US.UTF-8)
• Flutter version 1.22.4 at /home/momy/flutter
• Framework revision 1aafb3a8b9 (3 weeks ago), 2020-11-13 09:59:28 -0800
• Engine revision 2c956a31c0
• Dart version 2.10.4
^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant