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

Cache Network image plugin throws compile time errors #14

Closed
naasir27 opened this issue Jun 25, 2022 · 3 comments
Closed

Cache Network image plugin throws compile time errors #14

naasir27 opened this issue Jun 25, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@naasir27
Copy link

After integrating dash chat 2 and firebase I am facing this error message on my terminal
when do flutter run. Which was not available previously.
I noticed that cached_network_image-3.2.0 is only from dash_chat_2

../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-3.2.0/
lib/src/image_provider/multi_image_stream_completer.dart:152:22: Warning:
Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes
null.

  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
    ('../../sdk/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.scheduleFrameCallback(_handleAppFrame);
    ^
    ../../sdk/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-3.2.0/
    lib/src/image_provider/cached_network_image_provider.dart:109:29: Warning:
    Operand of null-aware operation '?.' has type 'PaintingBinding' which excludes
    null.
  • 'PaintingBinding' is from 'package:flutter/src/painting/binding.dart'
    ('../../sdk/flutter/packages/flutter/lib/src/painting/binding.dart').
    () => PaintingBinding.instance?.imageCache?.evict(key),

can you provide any assistance to resolve this
Environment

  • OS: [IOS, ANdroid]
  • Device: [ iPhone13 (IOS 15.5), Pixel 4a (Android 13)] | Emulator
  • Flutter: [2.10.4]
  • Xcode [latest]
@naasir27 naasir27 added the bug Something isn't working label Jun 25, 2022
@naasir27 naasir27 changed the title [Bug] Your title Cache Network image plugin throws compile time errors Jun 25, 2022
@SebastienBtr
Copy link
Owner

Seems like you're sending null in an image ChatMedia url, can you provide a minimal reproducible example?

@Jackson-Antunes-Sampaio
Copy link

same problem.
Dart 2.16.2 • DevTools 2.9.2

@SebastienBtr
Copy link
Owner

Closing this as I have not been able to reproduce it and the author didn't give more information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants