skip to Main Content

I uploaded image to Firebase Storage then I get Image’s Url to Firebase Storage created link for image. Then I saved image’s url in Firestore Documents. I get ImageUrl from firestore If message have a image and when I want to display a message. Before it was work but not its giving error.

Expanded(
    flex: imageFlex,
    child: SizedBox(
    child: Image.network(message["ImageUrl"].toString())),
), 

enter image description here

EDITED

firestore
enter image description here
controller.dart
enter image description here

messages_view.dart
enter image description here

2

Answers


  1. There is a Flutter issue about this problem introduced in 3.10.0
    https://github.com/flutter/flutter/issues/126650

    Login or Signup to reply.
  2. I saw this error with version 3.10.2; it is gone with version 3.10.3. There is a fix mentioned in the release notes under dart/52373. A thread about the issue mentions that it can be avoided by unchecking "All Exceptions" under "Breakpoints" in VS Code, but I did not try that.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search