Skip to content

I get this exception when adding the dependency  #9

@beautybird

Description

@beautybird

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
^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions